-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathtailwind.config.js
More file actions
153 lines (150 loc) · 5.08 KB
/
tailwind.config.js
File metadata and controls
153 lines (150 loc) · 5.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import { iconsPlugin, getIconCollections } from "@egoist/tailwindcss-icons";
import { colors } from "./src/lib/utils/themes";
import typographyPlugin from "@tailwindcss/typography";
import daisyuiPlugin from "daisyui";
import tailwindEasing from "@whiterussianstudio/tailwind-easing";
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class", '[data-theme="dark"]'], // dark mode set by class="dark" or data-theme="dark" in DOM
mode: "jit",
content: ["./src/**/*.{html,js,json,svelte,ts}"],
safelist: [
"alert-error",
"alert-success",
"alert-warning",
"alert-info",
"alert-primary",
],
// 👆 this forces tailwind to include these classes, used for dynamically setting toast colors
theme: {
extend: {
gridTemplateColumns: {
"1-2": "1fr 2fr",
},
fontFamily: {
"nolla-sans": ["Inter", "ui-sans-serif", "sans-serif"],
"nolla-mono": ['"IBM Plex Mono"', "ui-monospace", "monospace"],
"nolla-post-reveal": ["Lexend", "ui-sans-serif", "sans-serif"],
"nolla-stab": ["Mason Sans", "ui-serif", "serif"],
"nolla-pepp": ["Genty", "ui-sans-serif", "sans-serif"],
},
keyframes: {
"reverse-spin": {
from: {
transform: "rotate(360deg)",
},
},
"scale-fade": {
"0%": {
transform: "scale(1)",
opacity: "0.6",
},
"50%": {
transform: "scale(1.1)",
opacity: "1",
},
"100%": {
transform: "scale(1)",
opacity: "0.6",
},
},
},
animation: {
"scale-fade": "scale-fade 2s ease-in-out infinite",
"reverse-spin": "reverse-spin 1s linear infinite",
},
},
},
daisyui: {
themes: [
{
light: {
...colors.light,
},
},
{
dark: {
...colors.dark,
},
},
{
nollningPreReveal: {
primary: "#ffb4e5",
secondary: "#e2c6ff",
accent: "#1dcdbc",
neutral: "#bbb6b6",
"base-100": "#efefef",
info: "#3abff8",
success: "#36d399",
warning: "#fbbd23",
error: "#f87272",
// "--rounded-box": "1rem", // border radius rounded-box utility class, used in card and other large boxes
// "--rounded-btn": "0.5rem", // border radius rounded-btn utility class, used in buttons and similar element
// "--rounded-badge": "1.9rem", // border radius rounded-badge utility class, used in badges and similar
// "--animation-btn": "0.25s", // duration of animation when you click on button
// "--animation-input": "0.2s", // duration of animation for inputs like checkbox, toggle, radio, etc
// "--btn-focus-scale": "0.95", // scale transform of button when you focus on it
// "--border-btn": "1px", // border width of buttons
// "--tab-border": "1px", // border width of tabs
// "--tab-radius": "0.5rem", // border radius of tabs
},
},
{
nollningPostReveal: {
...colors.nollningPostReveal,
"--rounded-box": "1rem", // border radius rounded-box utility class, used in card and other large boxes
"--rounded-btn": "0.25rem", // border radius rounded-btn utility class, used in buttons and similar element
// "--rounded-badge": "1.9rem", // border radius rounded-badge utility class, used in badges and similar
// "--animation-btn": "0.25s", // duration of animation when you click on button
// "--animation-input": "0.2s", // duration of animation for inputs like checkbox, toggle, radio, etc
// "--btn-focus-scale": "0.95", // scale transform of button when you focus on it
"--border-btn": "1px", // border width of buttons
// "--tab-border": "1px", // border width of tabs
// "--tab-radius": "0.5rem", // border radius of tabs
},
},
],
logs: false,
},
plugins: [
typographyPlugin,
daisyuiPlugin,
iconsPlugin({
collections: getIconCollections(["mdi", "flag"]),
}),
tailwindEasing,
function ({ addUtilities }) {
addUtilities({
".text-stroke": {
"-webkit-text-stroke-width": "1px",
"-webkit-text-stroke-color": "black",
},
".text-stroke-white": {
"-webkit-text-stroke-color": "white",
},
".text-stroke-gray": {
"-webkit-text-stroke-color": "#4E4A45",
},
".text-stroke-2": {
"-webkit-text-stroke-width": "2px",
},
".text-stroke-black": {
"-webkit-text-stroke-color": "black",
},
".text-stroke-secondary": {
"-webkit-text-stroke-color": "#921010",
"paint-order": "stroke fill",
},
".text-stroke-0": {
"-webkit-text-stroke-width": "0px",
},
".text-stroke-4": {
"-webkit-text-stroke-width": "4px",
},
".text-stroke-6": {
"-webkit-text-stroke-width": "6px",
},
});
},
],
};