aboutsummaryrefslogtreecommitdiffstats
path: root/tailwind.config.cjs
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-03 20:48:42 -0800
committerAdam Soltys <[email protected]>2024-11-03 20:48:42 -0800
commit45c120aa153078323f5d6555711119513abb1258 (patch)
tree8cf18059bc730dc005a69ff66f96b53f80fa1f01 /tailwind.config.cjs
parentce79d97331f630df92bde34ce7809da2b8fd4ffa (diff)
downloadcoinos-ui-45c120aa153078323f5d6555711119513abb1258.tar.gz
coinos-ui-45c120aa153078323f5d6555711119513abb1258.zip
dark mode
Diffstat (limited to 'tailwind.config.cjs')
-rw-r--r--tailwind.config.cjs57
1 files changed, 43 insertions, 14 deletions
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 746f4ca6..31724909 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -1,17 +1,46 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: ["./src/**/*.{html,js,svelte}"],
- theme: {
- extend: {
- colors: {
- primary: "#F5F7FA",
- secondary: "#70757E",
- gradient: "#C3CFE2",
- lightgrey: "#EAECEF",
- grey: "#70757E",
- },
- },
- },
- plugins: [require("tailwind-scrollbar")],
- safelist: ["w-16", "h-16", "w-20", "h-20", "w-24", "h-24"],
+ content: ["./src/**/*.{html,js,svelte}"],
+ theme: {
+ extend: {
+ colors: {
+ primary: "#F5F7FA",
+ secondary: "#70757E",
+ gradient: "#C3CFE2",
+ lightgrey: "#EAECEF",
+ grey: "#70757E",
+ },
+ },
+ },
+ plugins: [require("tailwind-scrollbar"), require("daisyui")],
+ daisyui: {
+ themes: [
+ {
+ light: {
+ ...require("daisyui/src/theming/themes").lofi,
+ primary: "#F5F7FA",
+ secondary: "#70757E",
+ gradient: "#C3CFE2",
+ lightgrey: "#EAECEF",
+ grey: "#70757E",
+ },
+ },
+ {
+ dark: {
+ ...require("daisyui/src/theming/themes").black,
+ gradient: "#C3CFE2",
+ lightgrey: "#EAECEF",
+ grey: "#70757E",
+ },
+ },
+ ], // false: only light + dark | true: all themes | array: specific themes like this ["light", "dark", "cupcake"]
+ darkTheme: "dark", // name of one of the included themes for dark mode
+ base: true, // applies background color and foreground color for root element by default
+ styled: true, // include daisyUI colors and design decisions for all components
+ utils: true, // adds responsive and modifier utility classes
+ prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
+ logs: false, // Shows info about daisyUI version and used config in the console when building your CSS
+ themeRoot: ":root", // The element that receives theme color CSS variables
+ },
+ safelist: ["w-16", "h-16", "w-20", "h-20", "w-24", "h-24"],
};