-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
67 lines (64 loc) · 1.98 KB
/
tailwind.config.js
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
const defaultTheme = require("tailwindcss/defaultTheme");
const brandColors = {
navy: {
DEFAULT: "rgb(var(--brand-navy) / <alpha-value>)",
50: "rgb(var(--brand-navy) / <alpha-value>)",
100: "rgb(var(--brand-navy) / <alpha-value>)",
200: "rgb(var(--brand-navy) / <alpha-value>)",
300: "rgb(var(--brand-navy) / <alpha-value>)",
400: "rgb(var(--brand-navy) / <alpha-value>)",
500: "rgb(var(--brand-navy) / <alpha-value>)",
600: "rgb(var(--brand-navy) / <alpha-value>)",
700: "rgb(var(--brand-navy) / <alpha-value>)",
800: "rgb(var(--brand-navy) / <alpha-value>)",
900: "rgb(var(--brand-navy) / <alpha-value>)",
950: "rgb(var(--brand-navy) / <alpha-value>)",
},
};
module.exports = {
content: [
"./public/*.html",
"./app/helpers/**/*.rb",
"./app/javascript/**/*.js",
"./app/views/**/*.{erb,html}",
"./node_modules/flowbite/**/*.js",
],
theme: {
colors: {
// primary: brandColors.example,
// secondary: brandColors.example,
// neutral: brandColors.example,
},
extend: {
fontFamily: ["Inter var", ...defaultTheme.fontFamily.sans],
colors: {
/* Brand colors */
"brand-navy": brandColors.navy,
},
},
},
safeList: [
{
pattern: /^(bg|border|ring|shadow|text)-brand-(example|foo|bar)/,
variants: ["hover", "focus"],
},
{
pattern: /^(bg|border|ring|shadow|text)-brand-(example|foo|bar)\/(0|25|50|75|100)/,
variants: ["hover", "focus"],
},
{
pattern: /^(bg|border|ring|shadow|text)-brand-(example|foo|bar)-(50|100|200|300|400|500|600|700|800|900|950)/,
variants: ["hover", "focus"],
},
{
pattern: /^bg-brand-(example|foo|bar)-(50|100|200|300|400|500|600|700|800|900|950)\/(0|25|50|75|100)$/,
variants: ["hover", "focus"],
},
],
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
require("flowbite/plugin"),
],
};