attempt to fix tailwindcss utlity class but no worky

This commit is contained in:
JK-le-dev 2025-10-18 15:03:25 -05:00 committed by devaine
commit 3429c764e8
No known key found for this signature in database
GPG key ID: 4BA6E50E8768348F
4 changed files with 26 additions and 26 deletions

View file

@ -3,7 +3,7 @@ import React from "react";
function App() { function App() {
return ( return (
<div className="min-h-screen bg-blue-500 flex items-center justify-center"> <div className="min-h-screen bg-blue-500 flex items-center justify-center">
<p className="text-3xl font-bold text-primary">Hello, world!</p> <p className="text-3xl font-bold text-white">Hello, world!</p>
</div> </div>
); );
} }

View file

@ -1,14 +1,14 @@
@import "tailwindcss"; @import "tailwindcss";
@theme {
--color-primary: rgba(15, 40, 98);
--color-secondary: rgba(79, 95, 118);
--color-accent: rgba(158, 54, 58);
--color-paragraph: rgba(255, 255, 255);
--color-background: rgba(9, 31, 54);
}
body { body {
margin: 0; margin: 0;
background: rgba(var(--background)); background: rgba(var(--background));
} }
@theme {
--color-primary: 15, 40, 98;
--color-secondary: 79, 95, 118;
--color-accent: 158, 54, 58;
--color-paragraph: 255, 255, 255;
--color-background: 9, 31, 54;
}

View file

@ -1,7 +1,7 @@
@theme { @theme {
--color-paragraph: 255, 255, 255; --color-primary: rgba(15, 40, 98);
--color-background: 9, 31, 54; --color-secondary: rgba(79, 95, 118);
--color-primary: 15, 40, 98; --color-accent: rgba(158, 54, 58);
--color-secondary: 79, 95, 118; --color-paragraph: rgba(255, 255, 255);
--color-accent: 158, 54, 58; --color-background: rgba(9, 31, 54);
} }

View file

@ -1,29 +1,29 @@
import js from '@eslint/js' import js from "@eslint/js";
import globals from 'globals' import globals from "globals";
import reactHooks from 'eslint-plugin-react-hooks' import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from 'eslint-plugin-react-refresh' import reactRefresh from "eslint-plugin-react-refresh";
import { defineConfig, globalIgnores } from 'eslint/config' import { defineConfig, globalIgnores } from "eslint/config";
export default defineConfig([ export default defineConfig([
globalIgnores(['dist']), globalIgnores(["dist"]),
{ {
files: ['**/*.{js,jsx}'], files: ["**/*.{js,jsx}"],
extends: [ extends: [
js.configs.recommended, js.configs.recommended,
reactHooks.configs['recommended-latest'], reactHooks.configs["recommended-latest"],
reactRefresh.configs.vite, reactRefresh.configs.vite,
], ],
languageOptions: { languageOptions: {
ecmaVersion: 2020, ecmaVersion: 2020,
globals: globals.browser, globals: globals.browser,
parserOptions: { parserOptions: {
ecmaVersion: 'latest', ecmaVersion: "latest",
ecmaFeatures: { jsx: true }, ecmaFeatures: { jsx: true },
sourceType: 'module', sourceType: "module",
}, },
}, },
rules: { rules: {
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], "no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }],
}, },
}, },
]) ]);