Skip to content

Commit 0152a37

Browse files
committed
fix: update taiwindcss classes
1 parent dc0af64 commit 0152a37

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/LeetCodeDifficulty.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const getDifficultyCssClass: (difficulty: string) => string = (
3434
<Tag
3535
{...tagProps}
3636
class:list={[
37-
'px-2 py-1',
37+
'px-4 py-2',
3838
getDifficultyCssClass(difficulty),
3939
tag === 'a' ? 'link' : '',
4040
props.class,

tailwind.config.cjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ module.exports = {
1717
typography: theme => ({
1818
DEFAULT: {
1919
css: {
20-
color: theme('textColor.style.primary'),
21-
'--tw-prose-headings': theme('textColor.style.primary'),
22-
'--tw-prose-bold': theme('textColor.style.primary'),
23-
'--tw-prose-quotes': theme('textColor.style.primary'),
20+
color: 'rgb(var(--textColor-style-primary))',
21+
'--tw-prose-headings': 'rgb(var(--textColor-style-primary))',
22+
'--tw-prose-bold': 'rgb(var(--textColor-style-primary))',
23+
'--tw-prose-quotes': 'rgb(var(--textColor-style-primary))',
2424
'--tw-prose-pre-bg': '#0d1117',
2525
code: {
26-
backgroundColor: theme('backgroundColor.style.primary'),
26+
backgroundColor: 'rgb(var(--backgroundColor-style-primary))',
2727
padding: '5px',
2828
borderRadius: '3px',
2929
},

0 commit comments

Comments
 (0)