-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
80 lines (77 loc) · 3.95 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// This file is automatically generated.
// Do not edit this file, it will be overwritten
//
// If you want to modify it, follow instructions from
// https://docs.decidim.org/en/develop/customize/styles
//
const { inherit, current, transparent, white } = require("tailwindcss/colors")
const withOpacity =
(variable) =>
({ opacityValue }) =>
opacityValue === undefined
? `rgb(var(${variable}))`
: `rgb(var(${variable}) / ${opacityValue})`;
module.exports = {
// This content is generated automatically by decidim:webpacker:install task, it
// should not be updated manually.
// The array must contain all the decidim modules active in the application
content: ['/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-api-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-core-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-comments-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-accountability-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-admin-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-assemblies-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-blogs-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-budgets-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-debates-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-forms-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-generators-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-meetings-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-pages-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-participatory_processes-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-proposals-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-sortitions-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-templates-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-surveys-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-system-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-verifications-0.28.0','/home/edu/.rvm/gems/ruby-3.1.1@decidim-reus/gems/decidim-dev-0.28.0','/home/edu/proyectos/populate-decidim/decidim-reus/decidim/decidim-module-processes_admin_stats','/home/edu/proyectos/populate-decidim/decidim-reus/decidim/decidim-module-removable_authorizations','.'].flatMap(directory => [
`${directory}/app/views/**/*.html.erb`,
`${directory}/app/cells/**/*.{rb,erb}`,
`${directory}/app/helpers/**/*.rb`,
`${directory}/app/packs/**/*.js`,
`${directory}/lib/**/*.rb`
]),
// Comment out the next line to disable purging the tailwind styles
// safelist: [{ pattern: /.*/ }],
theme: {
colors: {
inherit,
current,
transparent,
white,
primary: withOpacity("--primary-rgb"),
secondary: withOpacity("--secondary-rgb"),
tertiary: withOpacity("--tertiary-rgb"),
success: withOpacity("--success-rgb"),
alert: withOpacity("--alert-rgb"),
warning: withOpacity("--warning-rgb"),
black: "#020203",
gray: {
DEFAULT: "#6B7280CC", // 80% opacity
2: "#3E4C5C",
3: "#E1E5EF",
4: "#242424",
5: "#F6F8FA"
},
background: {
DEFAULT: "#F3F4F7",
2: "#FAFBFC",
3: "#EFEFEF",
4: "#E4EEFF99" // 60% opacity
}
},
container: {
center: true,
padding: {
DEFAULT: "1rem",
lg: "4rem"
}
},
fontFamily: {
sans: ["Source Sans Pro", "ui-sans-serif", "system-ui", "sans-serif"]
},
fontSize: {
xs: ["13px", "16px"],
sm: ["14px", "18px"],
md: ["16px", "20px"],
lg: ["18px", "23px"],
xl: ["20px", "25px"],
"2xl": ["24px", "30px"],
"3xl": ["32px", "40px"],
"4xl": ["36px", "45px"],
"5xl": ["48px", "60px"]
}
},
plugins: [require("@tailwindcss/typography")]
}