Skip to content

Sidebar breaks Vite React PostCSS #5862

Answered by erayerdin
erayerdin asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, the devs, if they wish to, can convert this to an issue because I found the problem and it seems to be the way the code is being replaced. This is my tailwind.config.ts:

import type { Config } from 'tailwindcss';

export default {
  darkMode: ['class'],
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {
  	extend: {
  		backgroundImage: {
  			authbg: 'url('/authbg.jpg')' // the problem is here
  		},
  		screens: {
  			sm: '640px',
  			md: '768px',
  			lg: '1024px',
  			xl: '1280px',
  			'2xl': '1536px',
  			hd: '1080px',
  			fhd: '1440px'
  		},
  		borderRadius: {
  			lg: 'var(--radius)',
  			md: 'calc(var(--radius) - 2px)',
  			sm: 'calc(var(--rad…

Replies: 1 comment

Comment options

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