Skip to content

Commit

Permalink
chore: format css (cloudflare#16837)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry authored Sep 17, 2024
1 parent f5d70c5 commit 7791799
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.astro text eol=lf
*.css text eol=lf
*.go text eol=lf
*.html text eol=lf
*.ini text eol=lf
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
.github/**/*/index.js
.github/CODEOWNERS
public/_redirects
public/analytics/static/downloads/main.css
6 changes: 3 additions & 3 deletions src/headings.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:root {
--sl-text-h4: var(--sl-text-base);
--sl-text-h5: var(--sl-text-base);
}
--sl-text-h4: var(--sl-text-base);
--sl-text-h5: var(--sl-text-base);
}
42 changes: 21 additions & 21 deletions src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
@tailwind utilities;

@layer base {
:root {
--blue-accent-200: rgb(15, 0, 107);
--blue-accent-600: rgb(46, 105, 255);
--blue-accent-900: rgb(62, 116, 255);
:root {
--blue-accent-200: rgb(15, 0, 107);
--blue-accent-600: rgb(46, 105, 255);
--blue-accent-900: rgb(62, 116, 255);

--sidebar-blue-accent-600: rgba(62, 116, 255, 0.2);
--sidebar-blue-text: rgb(0, 43, 103);
--sidebar-blue-accent-600: rgba(62, 116, 255, 0.2);
--sidebar-blue-text: rgb(0, 43, 103);

--orange-accent-200: rgb(246, 130, 31);
--orange-accent-600: rgb(255, 102, 51);
--orange-accent-900: rgb(0, 0, 0);
--orange-accent-200: rgb(246, 130, 31);
--orange-accent-600: rgb(255, 102, 51);
--orange-accent-900: rgb(0, 0, 0);

--sidebar-orange-accent-600: rgba(246, 130, 31, 0.2);
--sidebar-orange-accent-600: rgba(246, 130, 31, 0.2);

--tw-accent-200: var(--blue-accent-200);
--tw-accent-600: var(--blue-accent-600);
--tw-accent-900: var(--blue-accent-900);
}
:root[data-theme="dark"] {
--tw-accent-200: var(--orange-accent-200);
--tw-accent-600: var(--orange-accent-600);
--tw-accent-900: var(--orange-accent-900);
}
}
--tw-accent-200: var(--blue-accent-200);
--tw-accent-600: var(--blue-accent-600);
--tw-accent-900: var(--blue-accent-900);
}

:root[data-theme="dark"] {
--tw-accent-200: var(--orange-accent-200);
--tw-accent-600: var(--orange-accent-600);
--tw-accent-900: var(--orange-accent-900);
}
}
4 changes: 2 additions & 2 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
colors: {
accent: {
200: "var(--tw-accent-200)",
600: "var(--tw-accent-600)",
900: "var(--tw-accent-900)",
},
gray
gray,
},
},
},
Expand Down

0 comments on commit 7791799

Please sign in to comment.