-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
64 lines (59 loc) · 1.24 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
const color = require('@k-vyn/coloralgorithm')
// biome-ignore format: we don't want to format the keys
const keys = ['50','100','200','300','400','500','600','700','800','900','950']
const props = {
'properties': {
'steps': 9,
'hue': {
'start': 190,
'end': 200,
'curve': 'easeInQuad',
},
'saturation': {
'start': 0.1,
'end': 1,
'rate': 1,
'curve': 'easeOutQuad',
},
'brightness': {
'start': 0.99,
'end': 0.7,
'curve': 'linear',
},
},
'options': {
'minorSteps': [0, 1],
'name': 'Blue',
'provideInverted': false,
'rotation': 'clockwise',
},
}
const colors = color.generate(props.properties, props.options)
const blue = Object.fromEntries(
colors[0].colors.map(({ hex }, i) => {
return [keys[i], hex]
}),
)
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{js,ts,jsx,tsx}', './index.html', './.storybook/**/*'],
theme: {
fontFamily: {
sans: ['DM Sans Variable'],
mono: [
'source-code-pro',
'Menlo',
'Monaco',
'Consolas',
'Courier New',
'monospace',
],
},
extend: {
colors: {
blue,
},
},
},
plugins: [],
}