Skip to content
Discussion options

You must be logged in to vote

Hello everyone !

I just found a solution :
I renamed my tailwind configuration from tailwind.config.js to tailwind.config.ts and edited the file like this :

import type { Config } from "tailwindcss"

const config = {
  darkMode: ["class"],
  content: [
    './renderer/pages/**/*.{ts,tsx}',
    './renderer/components/**/*.{ts,tsx}',
    './renderer/lib/**/*.{ts,tsx}'
	],
  prefix: "",
  theme: {
    container: {
      center: true,
      padding: "2rem",
      screens: {
        "2xl": "1400px",
      },
    },
    extend: {
      colors: {
        border: "hsl(var(--border))",
        input: "hsl(var(--input))",
        ring: "hsl(var(--ring))",
        background: "hsl(var(--background))…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by MaximePremont
Comment options

You must be logged in to vote
1 reply
@MaximePremont
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants