Skip to content

Instantly share code, notes, and snippets.

@maddada
Last active June 24, 2025 03:09
Show Gist options
  • Select an option

  • Save maddada/d550020d5991c2a3f93395c33cf0b8ea to your computer and use it in GitHub Desktop.

Select an option

Save maddada/d550020d5991c2a3f93395c33cf0b8ea to your computer and use it in GitHub Desktop.
Example tweakcn.com theme (tailwind v3) applied on Sharp Tabs
/*
# Easy steps for sample theme (recommended first):
# To try this sample custom tweakcn theme, just copy the all of the contents of this file and paste them in the Custom CSS field in Sharp Tab's settings.
===========
# Complete steps for custom theme:
To use a different custom tweakcn.com theme with Sharp Tabs:
1- Visit this link: https://tweakcn.com/editor/theme and pick any theme from the dropdown on the top left
2- Once you find a theme you like, click on the "Code" button on the top right
3- Make sure to switch "Tailwind V4" to "Tailwind V3" in the dropdown above the code, set 2nd dropdown to "hsl"
4- Click on copy, and paste the code into the Custom CSS area of Sharp Tabs
5- Make absolutely sure to pick Light or Dark with the Blue theme at in Sharp Tabs general settings (Has to be Blue or won't work!)
6- If you want to apply the font that's listed in the theme then you need to import it from fonts.google.com
(Ask any AI: "How to import a google font using @import syntax from fonts.google.com")
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
:root {
--background: 210 16.6667% 97.6471%;
--foreground: 240 41.4634% 8.0392%;
--card: 0 0% 100%;
--card-foreground: 240 41.4634% 8.0392%;
--popover: 0 0% 100%;
--popover-foreground: 240 41.4634% 8.0392%;
--primary: 312.9412 100% 50%;
--primary-foreground: 0 0% 100%;
--secondary: 240 100% 97.0588%;
--secondary-foreground: 240 41.4634% 8.0392%;
--muted: 240 100% 97.0588%;
--muted-foreground: 240 41.4634% 8.0392%;
--accent: 168 100% 50%;
--accent-foreground: 240 41.4634% 8.0392%;
--destructive: 14.3529 100% 50%;
--destructive-foreground: 0 0% 100%;
--border: 198.0000 18.5185% 89.4118%;
--input: 198.0000 18.5185% 89.4118%;
--ring: 312.9412 100% 50%;
--chart-1: 312.9412 100% 50%;
--chart-2: 273.8824 100% 50%;
--chart-3: 186.1176 100% 50%;
--chart-4: 168 100% 50%;
--chart-5: 54.1176 100% 50%;
--sidebar: 240 100% 97.0588%;
--sidebar-foreground: 240 41.4634% 8.0392%;
--sidebar-primary: 312.9412 100% 50%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 168 100% 50%;
--sidebar-accent-foreground: 240 41.4634% 8.0392%;
--sidebar-border: 198.0000 18.5185% 89.4118%;
--sidebar-ring: 312.9412 100% 50%;
--font-sans: Outfit, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: Fira Code, monospace;
--radius: 0.5rem;
--shadow-2xs: 0px 4px 8px -2px hsl(0 0% 0% / 0.05);
--shadow-xs: 0px 4px 8px -2px hsl(0 0% 0% / 0.05);
--shadow-sm: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 1px 2px -3px hsl(0 0% 0% / 0.10);
--shadow: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 1px 2px -3px hsl(0 0% 0% / 0.10);
--shadow-md: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 2px 4px -3px hsl(0 0% 0% / 0.10);
--shadow-lg: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 4px 6px -3px hsl(0 0% 0% / 0.10);
--shadow-xl: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 8px 10px -3px hsl(0 0% 0% / 0.10);
--shadow-2xl: 0px 4px 8px -2px hsl(0 0% 0% / 0.25);
}
.dark {
--background: 240 41.4634% 8.0392%;
--foreground: 217.5000 26.6667% 94.1176%;
--card: 240 35.4839% 18.2353%;
--card-foreground: 217.5000 26.6667% 94.1176%;
--popover: 240 35.4839% 18.2353%;
--popover-foreground: 217.5000 26.6667% 94.1176%;
--primary: 312.9412 100% 50%;
--primary-foreground: 0 0% 100%;
--secondary: 240 35.4839% 18.2353%;
--secondary-foreground: 217.5000 26.6667% 94.1176%;
--muted: 240 35.4839% 18.2353%;
--muted-foreground: 232.1053 17.5926% 57.6471%;
--accent: 168 100% 50%;
/* Removed this because it was causing issues on hover */
/* --accent-foreground: 240 41.4634% 8.0392%; */
--destructive: 14.3529 100% 50%;
--destructive-foreground: 0 0% 100%;
--border: 240 34.2857% 27.4510%;
--input: 240 34.2857% 27.4510%;
--ring: 312.9412 100% 50%;
--chart-1: 312.9412 100% 50%;
--chart-2: 273.8824 100% 50%;
--chart-3: 186.1176 100% 50%;
--chart-4: 168 100% 50%;
--chart-5: 54.1176 100% 50%;
--sidebar: 240 41.4634% 8.0392%;
--sidebar-foreground: 217.5000 26.6667% 94.1176%;
--sidebar-primary: 312.9412 100% 50%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 168 100% 50%;
--sidebar-accent-foreground: 240 41.4634% 8.0392%;
--sidebar-border: 240 34.2857% 27.4510%;
--sidebar-ring: 312.9412 100% 50%;
--font-sans: Outfit, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: Fira Code, monospace;
--radius: 0.5rem;
--shadow-2xs: 0px 4px 8px -2px hsl(0 0% 0% / 0.05);
--shadow-xs: 0px 4px 8px -2px hsl(0 0% 0% / 0.05);
--shadow-sm: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 1px 2px -3px hsl(0 0% 0% / 0.10);
--shadow: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 1px 2px -3px hsl(0 0% 0% / 0.10);
--shadow-md: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 2px 4px -3px hsl(0 0% 0% / 0.10);
--shadow-lg: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 4px 6px -3px hsl(0 0% 0% / 0.10);
--shadow-xl: 0px 4px 8px -2px hsl(0 0% 0% / 0.10), 0px 8px 10px -3px hsl(0 0% 0% / 0.10);
--shadow-2xl: 0px 4px 8px -2px hsl(0 0% 0% / 0.25);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment