@badcss/core
Advanced tools
Comparing version 0.1.4 to 0.1.5
import { ButtonComponent } from "./components/Button.js"; | ||
import { AlertComponent } from "./components/Alert.js"; | ||
const validComponents = ["button"]; | ||
const validComponents = ["button", "alert"]; | ||
@@ -17,9 +18,17 @@ // Set font on page load | ||
--primary: #2563eb; | ||
--primary-light: #60a5fa; | ||
--secondary: #475569; | ||
--secondary-light: #94a3b8; | ||
--danger: #dc2626; | ||
--success: #16a34a; | ||
--danger-light: #f87171; | ||
--success: #16a34a; | ||
--success-light: #4ade80; | ||
--warning: #eab308; | ||
--warning-light: #fde047; | ||
--info: #06b6d4; | ||
--info-light: #67e8f9; | ||
--dark: #19191a; | ||
--dark-light: #6b7280; | ||
--light: #f2f2f2; | ||
--light-light: #f7f7f7; | ||
} | ||
@@ -59,2 +68,4 @@ `; | ||
} | ||
// Remove the "themostbad" from the body tag | ||
body.removeAttribute("themostbad"); | ||
@@ -77,2 +88,8 @@ // Wait for the DOMContentLoaded event before running the mapping loop | ||
} | ||
case "alert": { | ||
console.log("alert"); | ||
AlertComponent(tag); | ||
break; | ||
} | ||
} | ||
@@ -79,0 +96,0 @@ } else { |
{ | ||
"name": "@badcss/core", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A lightweight and customizable framework designed to simplify web development and enhance the styling capabilities of your projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
13908
7
355