Skip to content

Commit

Permalink
feat: Add cmyk theme, fix: saadeghi#203
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Oct 23, 2021
1 parent c851160 commit 9a230b5
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
34 changes: 34 additions & 0 deletions src/colors/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,40 @@ module.exports = {
"--tab-border": "1px",
"--tab-radius": "0.5rem",
},
"[data-theme=cmyk]": {
'primary': '#45AEEE',
'primary-focus': '#3d9bd6',
'primary-content': '#000000',
'secondary': '#E8488A',
'secondary-focus': '#ce407b',
'secondary-content': '#000000',
'accent': '#FFF232',
'accent-focus': '#ddd12c',
'accent-content': '#000000',
'neutral': '#1a1a1a',
'neutral-focus': '#000000',
'neutral-content': '#ffffff',
'base-100': '#ffffff',
'base-200': '#f5f5f5',
'base-300': '#ebebeb',
'base-content': '#000000',
'info': '#4AA8C0',
'success': '#823290',
'warning': '#EE8133',
'error': '#E93F33',
"--border-color": "var(--b3)",
"--rounded-box": "1rem",
"--rounded-btn": "0.5rem",
"--rounded-badge": "1.9rem",
"--animation-btn": "0.25s",
"--animation-input": ".2s",
"--btn-text-case": "uppercase",
"--btn-focus-scale": "0.95",
"--navbar-padding": ".5rem",
"--border-btn": "1px",
"--tab-border": "1px",
"--tab-radius": "0.5rem",
},
"[data-theme=corporate]": {
"primary": "#4b6bfb",
"primary-focus": "#1942fa",
Expand Down
1 change: 1 addition & 0 deletions src/docs/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export default {
{ id: "black", name: "🏴  black" },
{ id: "luxury", name: "💎  luxury" },
{ id: "dracula", name: "🧛‍♂️  dracula" },
{ id: "cmyk", name: "🖨  CMYK" },
],
};
},
Expand Down
3 changes: 2 additions & 1 deletion src/docs/pages/docs/default-themes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
<code>wireframe</code>
<code>black</code>
<code>luxury</code>
<code>dracula</code></pre>
<code>dracula</code>
<code>cmyk</code></pre>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
}
})
}else if (config('daisyui.themes') != false) {
themeOrder= ['light','dark','cupcake','bumblebee','emerald','corporate','synthwave','retro','cyberpunk','valentine','halloween','garden','forest','aqua','lofi','pastel','fantasy','wireframe','black','luxury','dracula',]
themeOrder= ['light','dark','cupcake','bumblebee','emerald','corporate','synthwave','retro','cyberpunk','valentine','halloween','garden','forest','aqua','lofi','pastel','fantasy','wireframe','black','luxury','dracula','cmyk',]
}else if (config('daisyui.themes') == false) {
themeOrder.push('light')
}
Expand Down

0 comments on commit 9a230b5

Please sign in to comment.