Styledex
← Index

Caffeine

tweakcnApache-2.0Light and dark · bothMedium · mediumOrange · orangeMedium · mediumSerif · serifGeneral · generalLanding · landingProfessional · professional

A theme based on the Caffeine color palette.

NNorthwind
Product · Pricing
Specimen
Make the work feel finished

One interface, dressed in this style. Compare type, color, radius, and density.

128
Active
4.8
Score
12ms
Edge

Attribution

"Caffeine" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9.

https://github.com/jnsahaj/tweakcn · r/themes/caffeine.json · a3b47b37cba9 · © jnsahaj

Prompt

Design a user interface in the "Caffeine" style.

A theme based on the Caffeine color palette.

Apply these tokens to every surface. Do not invent a second palette.
- Background oklch(0.9821 0 0), foreground oklch(0.2435 0 0)
- Primary oklch(0.4341 0.0392 41.9938) on oklch(1.0000 0 0)
- Accent oklch(0.9310 0 0), muted oklch(0.9521 0 0), border oklch(0.8822 0 0)
- Radius 0.5rem, type ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
- Shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)

"Caffeine" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Caffeine. \"Caffeine\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9.",
  "$extensions": {
    "dev.styledex": {
      "id": "tweakcn-caffeine",
      "license": "Apache-2.0",
      "attribution": "\"Caffeine\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "oklch(0.9821 0 0)"
    },
    "foreground": {
      "$type": "color",
      "$value": "oklch(0.2435 0 0)"
    },
    "card": {
      "$type": "color",
      "$value": "oklch(0.9911 0 0)"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "oklch(0.2435 0 0)"
    },
    "primary": {
      "$type": "color",
      "$value": "oklch(0.4341 0.0392 41.9938)"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "oklch(1.0000 0 0)"
    },
    "secondary": {
      "$type": "color",
      "$value": "oklch(0.9200 0.0651 74.3695)"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "oklch(0.3499 0.0685 40.8288)"
    },
    "accent": {
      "$type": "color",
      "$value": "oklch(0.9310 0 0)"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "oklch(0.2435 0 0)"
    },
    "muted": {
      "$type": "color",
      "$value": "oklch(0.9521 0 0)"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "oklch(0.5032 0 0)"
    },
    "border": {
      "$type": "color",
      "$value": "oklch(0.8822 0 0)"
    },
    "destructive": {
      "$type": "color",
      "$value": "oklch(0.6271 0.1936 33.3390)"
    },
    "ring": {
      "$type": "color",
      "$value": "oklch(0.4341 0.0392 41.9938)"
    }
  },
  "font": {
    "sans": {
      "$type": "fontFamily",
      "$value": [
        "ui-sans-serif",
        "system-ui",
        "-apple-system",
        "BlinkMacSystemFont",
        "Segoe UI",
        "Roboto",
        "Helvetica Neue",
        "Arial",
        "Noto Sans",
        "sans-serif",
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji"
      ]
    },
    "serif": {
      "$type": "fontFamily",
      "$value": [
        "ui-serif",
        "Georgia",
        "Cambria",
        "Times New Roman",
        "Times",
        "serif"
      ]
    },
    "mono": {
      "$type": "fontFamily",
      "$value": [
        "ui-monospace",
        "SFMono-Regular",
        "Menlo",
        "Monaco",
        "Consolas",
        "Liberation Mono",
        "Courier New",
        "monospace"
      ]
    }
  },
  "radius": {
    "base": {
      "$type": "dimension",
      "$value": "0.5rem"
    }
  },
  "spacing": {
    "base": {
      "$type": "dimension",
      "$value": "0.25rem"
    }
  },
  "shadow": {
    "base": {
      "$type": "shadow",
      "$value": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
    }
  },
  "dark": {
    "color": {
      "background": {
        "$type": "color",
        "$value": "oklch(0.1776 0 0)"
      },
      "foreground": {
        "$type": "color",
        "$value": "oklch(0.9491 0 0)"
      },
      "card": {
        "$type": "color",
        "$value": "oklch(0.2134 0 0)"
      },
      "card-foreground": {
        "$type": "color",
        "$value": "oklch(0.9491 0 0)"
      },
      "primary": {
        "$type": "color",
        "$value": "oklch(0.9247 0.0524 66.1732)"
      },
      "primary-foreground": {
        "$type": "color",
        "$value": "oklch(0.2029 0.0240 200.1962)"
      },
      "secondary": {
        "$type": "color",
        "$value": "oklch(0.3163 0.0190 63.6992)"
      },
      "secondary-foreground": {
        "$type": "color",
        "$value": "oklch(0.9247 0.0524 66.1732)"
      },
      "accent": {
        "$type": "color",
        "$value": "oklch(0.2850 0 0)"
      },
      "accent-foreground": {
        "$type": "color",
        "$value": "oklch(0.9491 0 0)"
      },
      "muted": {
        "$type": "color",
        "$value": "oklch(0.2520 0 0)"
      },
      "muted-foreground": {
        "$type": "color",
        "$value": "oklch(0.7699 0 0)"
      },
      "border": {
        "$type": "color",
        "$value": "oklch(0.2351 0.0115 91.7467)"
      },
      "destructive": {
        "$type": "color",
        "$value": "oklch(0.6271 0.1936 33.3390)"
      },
      "ring": {
        "$type": "color",
        "$value": "oklch(0.9247 0.0524 66.1732)"
      }
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Caffeine" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9. */
:root {
  --background: oklch(0.9821 0 0);
  --foreground: oklch(0.2435 0 0);
  --card: oklch(0.9911 0 0);
  --card-foreground: oklch(0.2435 0 0);
  --primary: oklch(0.4341 0.0392 41.9938);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9200 0.0651 74.3695);
  --secondary-foreground: oklch(0.3499 0.0685 40.8288);
  --accent: oklch(0.9310 0 0);
  --accent-foreground: oklch(0.2435 0 0);
  --muted: oklch(0.9521 0 0);
  --muted-foreground: oklch(0.5032 0 0);
  --border: oklch(0.8822 0 0);
  --destructive: oklch(0.6271 0.1936 33.3390);
  --ring: oklch(0.4341 0.0392 41.9938);
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --spacing: 0.25rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.dark {
  --background: oklch(0.1776 0 0);
  --foreground: oklch(0.9491 0 0);
  --card: oklch(0.2134 0 0);
  --card-foreground: oklch(0.9491 0 0);
  --primary: oklch(0.9247 0.0524 66.1732);
  --primary-foreground: oklch(0.2029 0.0240 200.1962);
  --secondary: oklch(0.3163 0.0190 63.6992);
  --secondary-foreground: oklch(0.9247 0.0524 66.1732);
  --accent: oklch(0.2850 0 0);
  --accent-foreground: oklch(0.9491 0 0);
  --muted: oklch(0.2520 0 0);
  --muted-foreground: oklch(0.7699 0 0);
  --border: oklch(0.2351 0.0115 91.7467);
  --destructive: oklch(0.6271 0.1936 33.3390);
  --ring: oklch(0.9247 0.0524 66.1732);
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --spacing: 0.25rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Caffeine" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9. */
/** Tailwind theme extend for Caffeine (tweakcn-caffeine) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "oklch(0.9821 0 0)",
        "foreground": "oklch(0.2435 0 0)",
        "card": "oklch(0.9911 0 0)",
        "primary": "oklch(0.4341 0.0392 41.9938)",
        "primary-foreground": "oklch(1.0000 0 0)",
        "secondary": "oklch(0.9200 0.0651 74.3695)",
        "accent": "oklch(0.9310 0 0)",
        "muted": "oklch(0.9521 0 0)",
        "border": "oklch(0.8822 0 0)",
        "destructive": "oklch(0.6271 0.1936 33.3390)",
        "ring": "oklch(0.4341 0.0392 41.9938)"
      },
      "borderRadius": {
        "lg": "0.5rem"
      },
      "fontFamily": {
        "sans": [
          "ui-sans-serif",
          "system-ui",
          "-apple-system",
          "BlinkMacSystemFont",
          "Segoe UI",
          "Roboto",
          "Helvetica Neue",
          "Arial",
          "Noto Sans",
          "sans-serif",
          "Apple Color Emoji",
          "Segoe UI Emoji",
          "Segoe UI Symbol",
          "Noto Color Emoji"
        ],
        "serif": [
          "ui-serif",
          "Georgia",
          "Cambria",
          "Times New Roman",
          "Times",
          "serif"
        ],
        "mono": [
          "ui-monospace",
          "SFMono-Regular",
          "Menlo",
          "Monaco",
          "Consolas",
          "Liberation Mono",
          "Courier New",
          "monospace"
        ]
      },
      "boxShadow": {
        "styledex": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Caffeine" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/caffeine.json @ a3b47b37cba9. */
@layer base {
:root {
  --background: oklch(0.9821 0 0);
  --foreground: oklch(0.2435 0 0);
  --card: oklch(0.9911 0 0);
  --card-foreground: oklch(0.2435 0 0);
  --primary: oklch(0.4341 0.0392 41.9938);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9200 0.0651 74.3695);
  --secondary-foreground: oklch(0.3499 0.0685 40.8288);
  --accent: oklch(0.9310 0 0);
  --accent-foreground: oklch(0.2435 0 0);
  --muted: oklch(0.9521 0 0);
  --muted-foreground: oklch(0.5032 0 0);
  --border: oklch(0.8822 0 0);
  --destructive: oklch(0.6271 0.1936 33.3390);
  --ring: oklch(0.4341 0.0392 41.9938);
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --spacing: 0.25rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.dark {
  --background: oklch(0.1776 0 0);
  --foreground: oklch(0.9491 0 0);
  --card: oklch(0.2134 0 0);
  --card-foreground: oklch(0.9491 0 0);
  --primary: oklch(0.9247 0.0524 66.1732);
  --primary-foreground: oklch(0.2029 0.0240 200.1962);
  --secondary: oklch(0.3163 0.0190 63.6992);
  --secondary-foreground: oklch(0.9247 0.0524 66.1732);
  --accent: oklch(0.2850 0 0);
  --accent-foreground: oklch(0.9491 0 0);
  --muted: oklch(0.2520 0 0);
  --muted-foreground: oklch(0.7699 0 0);
  --border: oklch(0.2351 0.0115 91.7467);
  --destructive: oklch(0.6271 0.1936 33.3390);
  --ring: oklch(0.9247 0.0524 66.1732);
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --spacing: 0.25rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}