DEV Community

Serey Vatanak
Serey Vatanak

Posted on


How do you config custom theme in twind config file?

The official fresh website is open source and simply puts it at the root of the project.


import { Options } from "$fresh/plugins/twind.ts";

export default {
  selfURL: import.meta.url,
  theme: {
    extend: {
      colors: {
        primary: "#0b486b",
        secondary: "#106799",
        transparent: "transparent",
} as Options;
Enter fullscreen mode Exit fullscreen mode


Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.