Styledex
← Index

Starry Night

tweakcnApache-2.0Light and dark · bothMedium · mediumBlue · blueVivid · vividSerif · serifGeneral · generalLanding · landingProfessional · professional

A theme based on the Starry Night 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

"Starry Night" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/starry-night.json @ a3b47b37cba9.

https://github.com/jnsahaj/tweakcn · r/themes/starry-night.json · a3b47b37cba9 · © jnsahaj

Prompt

Design a user interface in the "Starry Night" style.

A theme based on the Starry Night color palette.

Apply these tokens to every surface. Do not invent a second palette.
- Background oklch(0.9755 0.0045 258.3245), foreground oklch(0.2558 0.0433 268.0662)
- Primary oklch(0.4815 0.1178 263.3758) on oklch(0.9856 0.0278 98.0540)
- Accent oklch(0.6896 0.0714 234.0387), muted oklch(0.9202 0.0080 106.5563), border oklch(0.7791 0.0156 251.1926)
- Radius 0.5rem, type Libre Baskerville, serif
- Shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)

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

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Starry Night. \"Starry Night\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/starry-night.json @ a3b47b37cba9.",
  "$extensions": {
    "dev.styledex": {
      "id": "tweakcn-starry-night",
      "license": "Apache-2.0",
      "attribution": "\"Starry Night\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/starry-night.json @ a3b47b37cba9.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "oklch(0.9755 0.0045 258.3245)"
    },
    "foreground": {
      "$type": "color",
      "$value": "oklch(0.2558 0.0433 268.0662)"
    },
    "card": {
      "$type": "color",
      "$value": "oklch(0.9341 0.0132 251.5628)"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "oklch(0.2558 0.0433 268.0662)"
    },
    "primary": {
      "$type": "color",
      "$value": "oklch(0.4815 0.1178 263.3758)"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "oklch(0.9856 0.0278 98.0540)"
    },
    "secondary": {
      "$type": "color",
      "$value": "oklch(0.8567 0.1164 81.0092)"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "oklch(0.2558 0.0433 268.0662)"
    },
    "accent": {
      "$type": "color",
      "$value": "oklch(0.6896 0.0714 234.0387)"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "oklch(0.9856 0.0278 98.0540)"
    },
    "muted": {
      "$type": "color",
      "$value": "oklch(0.9202 0.0080 106.5563)"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "oklch(0.4815 0.1178 263.3758)"
    },
    "border": {
      "$type": "color",
      "$value": "oklch(0.7791 0.0156 251.1926)"
    },
    "destructive": {
      "$type": "color",
      "$value": "oklch(0.2611 0.0376 322.5267)"
    },
    "ring": {
      "$type": "color",
      "$value": "oklch(0.8567 0.1164 81.0092)"
    }
  },
  "font": {
    "sans": {
      "$type": "fontFamily",
      "$value": [
        "Libre Baskerville",
        "serif"
      ]
    },
    "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.2204 0.0198 275.8439)"
      },
      "foreground": {
        "$type": "color",
        "$value": "oklch(0.9366 0.0129 266.6974)"
      },
      "card": {
        "$type": "color",
        "$value": "oklch(0.2703 0.0407 281.3036)"
      },
      "card-foreground": {
        "$type": "color",
        "$value": "oklch(0.9366 0.0129 266.6974)"
      },
      "primary": {
        "$type": "color",
        "$value": "oklch(0.4815 0.1178 263.3758)"
      },
      "primary-foreground": {
        "$type": "color",
        "$value": "oklch(0.9097 0.1440 95.1120)"
      },
      "secondary": {
        "$type": "color",
        "$value": "oklch(0.9097 0.1440 95.1120)"
      },
      "secondary-foreground": {
        "$type": "color",
        "$value": "oklch(0.2703 0.0407 281.3036)"
      },
      "accent": {
        "$type": "color",
        "$value": "oklch(0.8469 0.0524 264.7751)"
      },
      "accent-foreground": {
        "$type": "color",
        "$value": "oklch(0.2204 0.0198 275.8439)"
      },
      "muted": {
        "$type": "color",
        "$value": "oklch(0.2424 0.0324 281.0890)"
      },
      "muted-foreground": {
        "$type": "color",
        "$value": "oklch(0.6243 0.0412 262.0375)"
      },
      "border": {
        "$type": "color",
        "$value": "oklch(0.3072 0.0287 281.7681)"
      },
      "destructive": {
        "$type": "color",
        "$value": "oklch(0.5280 0.1200 357.1130)"
      },
      "ring": {
        "$type": "color",
        "$value": "oklch(0.9097 0.1440 95.1120)"
      }
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Starry Night" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/starry-night.json @ a3b47b37cba9. */
:root {
  --background: oklch(0.9755 0.0045 258.3245);
  --foreground: oklch(0.2558 0.0433 268.0662);
  --card: oklch(0.9341 0.0132 251.5628);
  --card-foreground: oklch(0.2558 0.0433 268.0662);
  --primary: oklch(0.4815 0.1178 263.3758);
  --primary-foreground: oklch(0.9856 0.0278 98.0540);
  --secondary: oklch(0.8567 0.1164 81.0092);
  --secondary-foreground: oklch(0.2558 0.0433 268.0662);
  --accent: oklch(0.6896 0.0714 234.0387);
  --accent-foreground: oklch(0.9856 0.0278 98.0540);
  --muted: oklch(0.9202 0.0080 106.5563);
  --muted-foreground: oklch(0.4815 0.1178 263.3758);
  --border: oklch(0.7791 0.0156 251.1926);
  --destructive: oklch(0.2611 0.0376 322.5267);
  --ring: oklch(0.8567 0.1164 81.0092);
  --radius: 0.5rem;
  --font-sans: Libre Baskerville, serif;
  --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.2204 0.0198 275.8439);
  --foreground: oklch(0.9366 0.0129 266.6974);
  --card: oklch(0.2703 0.0407 281.3036);
  --card-foreground: oklch(0.9366 0.0129 266.6974);
  --primary: oklch(0.4815 0.1178 263.3758);
  --primary-foreground: oklch(0.9097 0.1440 95.1120);
  --secondary: oklch(0.9097 0.1440 95.1120);
  --secondary-foreground: oklch(0.2703 0.0407 281.3036);
  --accent: oklch(0.8469 0.0524 264.7751);
  --accent-foreground: oklch(0.2204 0.0198 275.8439);
  --muted: oklch(0.2424 0.0324 281.0890);
  --muted-foreground: oklch(0.6243 0.0412 262.0375);
  --border: oklch(0.3072 0.0287 281.7681);
  --destructive: oklch(0.5280 0.1200 357.1130);
  --ring: oklch(0.9097 0.1440 95.1120);
  --radius: 0.5rem;
  --font-sans: Libre Baskerville, serif;
  --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 */
/* "Starry Night" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/starry-night.json @ a3b47b37cba9. */
/** Tailwind theme extend for Starry Night (tweakcn-starry-night) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "oklch(0.9755 0.0045 258.3245)",
        "foreground": "oklch(0.2558 0.0433 268.0662)",
        "card": "oklch(0.9341 0.0132 251.5628)",
        "primary": "oklch(0.4815 0.1178 263.3758)",
        "primary-foreground": "oklch(0.9856 0.0278 98.0540)",
        "secondary": "oklch(0.8567 0.1164 81.0092)",
        "accent": "oklch(0.6896 0.0714 234.0387)",
        "muted": "oklch(0.9202 0.0080 106.5563)",
        "border": "oklch(0.7791 0.0156 251.1926)",
        "destructive": "oklch(0.2611 0.0376 322.5267)",
        "ring": "oklch(0.8567 0.1164 81.0092)"
      },
      "borderRadius": {
        "lg": "0.5rem"
      },
      "fontFamily": {
        "sans": [
          "Libre Baskerville",
          "serif"
        ],
        "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 */
/* "Starry Night" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/starry-night.json @ a3b47b37cba9. */
@layer base {
:root {
  --background: oklch(0.9755 0.0045 258.3245);
  --foreground: oklch(0.2558 0.0433 268.0662);
  --card: oklch(0.9341 0.0132 251.5628);
  --card-foreground: oklch(0.2558 0.0433 268.0662);
  --primary: oklch(0.4815 0.1178 263.3758);
  --primary-foreground: oklch(0.9856 0.0278 98.0540);
  --secondary: oklch(0.8567 0.1164 81.0092);
  --secondary-foreground: oklch(0.2558 0.0433 268.0662);
  --accent: oklch(0.6896 0.0714 234.0387);
  --accent-foreground: oklch(0.9856 0.0278 98.0540);
  --muted: oklch(0.9202 0.0080 106.5563);
  --muted-foreground: oklch(0.4815 0.1178 263.3758);
  --border: oklch(0.7791 0.0156 251.1926);
  --destructive: oklch(0.2611 0.0376 322.5267);
  --ring: oklch(0.8567 0.1164 81.0092);
  --radius: 0.5rem;
  --font-sans: Libre Baskerville, serif;
  --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.2204 0.0198 275.8439);
  --foreground: oklch(0.9366 0.0129 266.6974);
  --card: oklch(0.2703 0.0407 281.3036);
  --card-foreground: oklch(0.9366 0.0129 266.6974);
  --primary: oklch(0.4815 0.1178 263.3758);
  --primary-foreground: oklch(0.9097 0.1440 95.1120);
  --secondary: oklch(0.9097 0.1440 95.1120);
  --secondary-foreground: oklch(0.2703 0.0407 281.3036);
  --accent: oklch(0.8469 0.0524 264.7751);
  --accent-foreground: oklch(0.2204 0.0198 275.8439);
  --muted: oklch(0.2424 0.0324 281.0890);
  --muted-foreground: oklch(0.6243 0.0412 262.0375);
  --border: oklch(0.3072 0.0287 281.7681);
  --destructive: oklch(0.5280 0.1200 357.1130);
  --ring: oklch(0.9097 0.1440 95.1120);
  --radius: 0.5rem;
  --font-sans: Libre Baskerville, serif;
  --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);
}
}