@@ -8,96 +8,6 @@ import starlightPlugin from "@astrojs/starlight-tailwind";
8
8
import aspectRatioPlugin from "@tailwindcss/aspect-ratio" ;
9
9
import containerQueriesPlugin from "@tailwindcss/container-queries" ;
10
10
11
- const linkHeadingStyles = {
12
- color : colors . gray [ 100 ] ,
13
- borderBottomColor : "transparent" ,
14
- "&:hover" : { color : `${ colors . gray [ 900 ] } ` } ,
15
- } ;
16
-
17
- const extendTheme = {
18
- screens : {
19
- xs : "320px" ,
20
- } ,
21
- typography : ( {
22
- theme,
23
- } : {
24
- theme : (
25
- path : string
26
- ) => string | number | Record < string , unknown > | Array < unknown > | undefined ;
27
- } ) => ( {
28
- DEFAULT : {
29
- css : {
30
- // h1: { fontFamily: theme('fontFamily.obviously') },
31
- pre : { background : "rgba(205, 200, 255, 0.05)" } ,
32
- "h2 a" : linkHeadingStyles ,
33
- "h3 a" : linkHeadingStyles ,
34
- "h4 a" : linkHeadingStyles ,
35
- "h5 a" : linkHeadingStyles ,
36
- "h6 a" : linkHeadingStyles ,
37
- blockquote : {
38
- fontSize : "90%" ,
39
- color : colors . zinc [ 500 ] ,
40
- borderLeftColor : colors . zinc [ 700 ] ,
41
- "p::before" : { display : "none" } ,
42
- "p::after" : { display : "none" } ,
43
- } ,
44
- a : {
45
- textDecoration : "none" ,
46
- borderBottom : `2px solid ${ colors . cyan [ 800 ] } ` ,
47
- color : colors . cyan [ 400 ] ,
48
- transition :
49
- "color 0.2s ease, border-color 0.2s ease, background 0.2s ease" ,
50
- "&:hover" : {
51
- color : `${ colors . zinc [ 900 ] } !important` ,
52
- borderBottomColor : `${ colors . cyan [ 200 ] } !important` ,
53
- background : colors . cyan [ 200 ] ,
54
- } ,
55
- } ,
56
- code : {
57
- color : "#86e1fc" ,
58
- "&::before" : { content : `unset !important` } ,
59
- "&::after" : { content : `unset !important` } ,
60
- fontWeight : "normal" ,
61
- } ,
62
- "[data-rehype-pretty-code-fragment]:nth-of-type(2) pre" : {
63
- "[data-line]::before" : {
64
- content : "counter(line)" ,
65
- counterIncrement : "line" ,
66
- display : "inline-block" ,
67
- width : "1rem" ,
68
- marginRight : "1rem" ,
69
- textAlign : "right" ,
70
- color : colors . slate [ 600 ] ,
71
- } ,
72
- "[data-highlighted-line]::before" : { color : colors . slate [ 400 ] } ,
73
- } ,
74
- } ,
75
- } ,
76
- } ) ,
77
- colors : {
78
- background : "#1b1b1d" ,
79
- bgDark : "#242526" ,
80
- sub : "#252525" ,
81
- primary : "#fff" ,
82
- accent : {
83
- "50" : "#fdf2f8" ,
84
- "100" : "#fce7f3" ,
85
- "200" : "#ffc4e1" ,
86
- "300" : "#f9a8d4" ,
87
- "400" : "#FF87C3" ,
88
- "500" : "#ec4899" ,
89
- "600" : "#ff63c1" ,
90
- } ,
91
- gray : colors . zinc ,
92
- } ,
93
- fontFamily : {
94
- mono : [ '"IBM Plex Mono"' , ...defaultTheme . fontFamily . mono ] ,
95
- sans : [ "Inter" ] ,
96
- serif : [ "Inter" ] ,
97
- argon : [ '"Monospace Argon"' ] ,
98
- } ,
99
- } ;
100
-
101
11
export default {
102
12
content : [ "./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}" ] ,
103
13
darkMode : "class" ,
@@ -106,7 +16,39 @@ export default {
106
16
theme : {
107
17
transparent : "transparent" ,
108
18
current : "currentColor" ,
109
- extend : extendTheme ,
19
+ extend : {
20
+ screens : {
21
+ xs : "320px" ,
22
+ } ,
23
+ colors : {
24
+ background : "#1b1b1d" ,
25
+ bgDark : "#242526" ,
26
+ sub : "#252525" ,
27
+ primary : "#fff" ,
28
+ accent : {
29
+ "50" : "#fdf2f8" ,
30
+ "100" : "#fce7f3" ,
31
+ "200" : "#ffc4e1" ,
32
+ "300" : "#f9a8d4" ,
33
+ "400" : "#FF87C3" ,
34
+ "500" : "#ec4899" ,
35
+ "600" : "#ff63c1" ,
36
+ } ,
37
+ gray : colors . zinc ,
38
+ } ,
39
+ fontFamily : {
40
+ mono : [ '"IBM Plex Mono"' , ...defaultTheme . fontFamily . mono ] ,
41
+ sans : [
42
+ '"Inter var", sans-serif' ,
43
+ {
44
+ fontFeatureSettings : '"cv11", "ss01"' ,
45
+ fontVariationSettings : '"opsz" 32' ,
46
+ } ,
47
+ ] ,
48
+ serif : [ '"Inter var"' ] ,
49
+ argon : [ '"Monospace Argon"' ] ,
50
+ } ,
51
+ } ,
110
52
} ,
111
53
plugins : [
112
54
starlightPlugin ( ) ,
0 commit comments