forked from paradigmxyz/frontiers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
67 lines (65 loc) · 1.98 KB
/
tailwind.config.ts
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
import capsize from 'tailwindcss-capsize'
import defaultTheme from 'tailwindcss/defaultTheme'
import type { Config } from 'tailwindcss/types/config'
const config: Config = {
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
plugins: [capsize],
// NOTE: It may be tempting to add theme tokens adhocly, but please
// consider talking to the designer first to keep the brand in sync.
theme: {
// Ref: Colors – https://www.notion.so/paradigmxyz/Brand-Kit-2024-5a8dd9a3fd524b7787e8801726f4de87?pvs=4#a16a321654654d41b109fedde5fe6d1c
colors: {
black: 'black',
cobalt: '#0F5AB2',
darkGray: '#D0D0D0',
gray: '#DDEBDD',
frontier: '#F6FFF6',
paradigmGreen: '#00E100',
saffron: '#E6A11B',
spaceBlack: '#090909',
violet: '#C100A3',
white: 'white',
},
// Ref: Typography – https://www.notion.so/paradigmxyz/Brand-Kit-2024-5a8dd9a3fd524b7787e8801726f4de87?pvs=4#9ec0d71718534011808d280dec9b3219
fontFamily: {
sans: ['Martina Plantijn', ...defaultTheme.fontFamily.sans],
typewriter: ['Atlas Typewriter', ...defaultTheme.fontFamily.mono],
},
fontMetrics: {
sans: {
capHeight: 700,
ascent: 991,
descent: -262,
lineGap: 0,
unitsPerEm: 1000,
},
typewriter: {
capHeight: 765,
ascent: 1052,
descent: -200,
lineGap: 0,
unitsPerEm: 1000,
},
},
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 50ms cubic-bezier(0.77, 0, 0.175, 1)',
'accordion-up': 'accordion-up 50ms cubic-bezier(0.77, 0, 0.175, 1)',
},
screens: {
mobile: '720px',
tablet: '1024px',
desktop: '1280px',
},
},
}
export default config