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


Latest comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git