Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]: tailwind v4 #7507

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions apps/site/.postcssrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"postcss-mixins": {},
"postcss-simple-vars": {},
"postcss-calc": {},
"postcss-import": {},
"tailwindcss/nesting": {},
"tailwindcss": {},
"autoprefixer": {}
"@tailwindcss/postcss": {}
}
}
2 changes: 2 additions & 0 deletions apps/site/.stylelintrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ export default {
'media-feature-range-notation': 'prefix',
// Adopts the import notation from `postcss-import`
'import-notation': 'string',
'at-rule-no-unknown': null,
'function-no-unknown': null,
},
};
7 changes: 2 additions & 5 deletions apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-toast": "^1.2.5",
"@radix-ui/react-tooltip": "^1.1.8",
"@savvywombat/tailwindcss-grid-areas": "~4.0.0",
"@tailwindcss/container-queries": "~0.1.1",
"@tailwindcss/postcss": "^4.0.8",
"@vcarl/remark-headings": "~0.1.0",
"@vercel/analytics": "~1.4.1",
"@vercel/otel": "~1.10.1",
"@vercel/speed-insights": "~1.1.0",
"autoprefixer": "~10.4.20",
"classnames": "~2.5.1",
"cross-env": "7.0.3",
"dedent": "1.5.3",
Expand All @@ -58,7 +56,6 @@
"next-themes": "~0.4.3",
"postcss": "~8.4.49",
"postcss-calc": "~10.0.2",
"postcss-import": "~16.1.0",
"postcss-loader": "~8.1.1",
"postcss-mixins": "~11.0.3",
"postcss-simple-vars": "~7.0.1",
Expand All @@ -71,7 +68,7 @@
"semver": "~7.7.1",
"shiki": "~2.2.0",
"sval": "^0.5.2",
"tailwindcss": "~3.4.15",
"tailwindcss": "^4.0.8",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"tailwindcss": "^4.0.8",
"tailwindcss": "~4.0.8",

"unist-util-visit": "~5.0.0",
"vfile": "~6.0.3",
"vfile-matter": "~5.0.0"
Expand Down
164 changes: 157 additions & 7 deletions apps/site/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,160 @@
* @see https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
*/

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import './base.css';
@import './markdown.css';
@import './effects.css';
@import './locals.css';
@import 'tailwindcss';
@import './base.css' layer(utilities);
@import './markdown.css' layer(utilities);
@import './effects.css' layer(utilities);
@import './locals.css' layer(utilities);

@theme {
--green-100: #edf2eb;
--green-200: #c5e5b4;
--green-300: #99cc7d;
--green-400: #84ba64;
--green-500: #5fa04e;
--green-600: #417e38;
--green-700: #2c682c;
--green-800: #2c682c;
--green-900: #1a3f1d;
--neutral-100: #f6f7f9;
--neutral-200: #e9edf0;
--neutral-300: #d9e1e4;
--neutral-400: #cbd4d9;
--neutral-500: #b1bcc2;
--neutral-600: #929fa5;
--neutral-700: #6e7b83;
--neutral-800: #556066;
--neutral-900: #2c3437;
--neutral-950: #0d121c;
--danger-100: #fbf1f0;
--danger-200: #fad3d4;
--danger-300: #fab6b7;
--danger-400: #fa8e8e;
--danger-500: #f65354;
--danger-600: #de1a1b;
--danger-700: #b80c0c;
--danger-800: #900e0e;
--danger-900: #661514;
--warning-100: #fdf3e7;
--warning-200: #fad9b0;
--warning-300: #f5bc75;
--warning-400: #e99c40;
--warning-500: #d07912;
--warning-600: #ae5f00;
--warning-700: #8b4d04;
--warning-800: #683d08;
--warning-900: #4d2f0b;
--info-100: #e9f4fa;
--info-200: #bce6fc;
--info-300: #8ed4f8;
--info-400: #52baed;
--info-500: #229ad6;
--info-600: #0c7bb3;
--info-700: #066291;
--info-800: #074d71;
--info-900: #0a3953;
--accent1-100: #f7f1fb;
--accent1-200: #ead9fb;
--accent1-300: #dbbdf9;
--accent1-400: #c79bf2;
--accent1-500: #af74e8;
--accent1-600: #9756d6;
--accent1-700: #7d3cbe;
--accent1-800: #642b9e;
--accent1-900: #361b52;
--accent2-100: #fbf0f4;
--accent2-200: #fbd4e6;
--accent2-300: #fbb4d2;
--accent2-400: #f68bb7;
--accent2-500: #ed5393;
--accent2-600: #d6246e;
--accent2-700: #b01356;
--accent2-800: #8b1245;
--accent2-900: #411526;
--pulse-100: #0000330f;
--pulse-200: #00002d17;
--pulse-300: #ddeaf814;
--pulse-400: #d3edf81d;
--white: #fff;
--transparent: 'transparent';
--shadow: #101828;
--inherit: 'inherit';
--shadow-xs: 0px 1px 2px 0px theme(colors.shadow / 5%);
--shadow-lg: 0px 4px 6px -2px theme(colors.shadow / 3%),
0px 12px 16px -4px theme(colors.shadow / 8%);
--font-open-sans: var(--font-open-sans);
--ibm-plex-mono: var(--font-ibm-plex-mono);
--font-weight-regular: '400';
--font-weight-medium: '500';
--font-weight-semibold: '600';
--font-weight-bold: '700';
--font-xs: 0.75rem;
--font-xs-line-height: 1rem;
--font-sm: 0.87rem;
--font-sm-line-height: 1.25rem;
--font-base: 1rem;
--font-base-line-height: 1.5rem;
--font-lg: 1.125rem;
--font-lg-line-height: 1.75rem;
--font-xl: 1.25rem;
--font-xl-line-height: 1.875rem;
--font-2xl: 1.5rem;
--font-2xl-line-height: 2rem;
--font-3xl: 1.875rem;
--font-3xl-line-height: 2.25rem;
--font-4xl: 2.25rem;
--font-4xl-line-height: 2.5rem;
--font-5xl: 3rem;
--font-5xl-line-height: 3rem;
--font-6xl: 3.75rem;
--font-6xl-line-height: 3.75rem;
--font-7xl: 4.5rem;
--font-7xl-line-height: 4.5rem;
--breakpoint-xs: 670px;
--animate-surf: surf 1s infinite ease-in-out;
--animate-pulse: pulse 500ms infinite alternate-reverse;
--animate-pulse-dark: pulse-dark 500ms infinite alternate-reverse;

@keyframes surf {
0% {
transform: translate(0, 0);
}

25% {
transform: translate(0, 6px);
}

50% {
transform: translate(0, -6px);
}

75% {
transform: translate(0, 3px);
}

100% {
transform: translate(0, 0);
}
}

@keyframes pulse {
from {
background: theme(colors.pulse.100);
}

to {
background: theme('colors.pulse.200');
}
}

@keyframes pulse-dark {
from {
background: theme(colors.pulse.300);
}

to {
background: theme(colors.pulse.400);
}
}
}
Loading