Skip to content

Commit

Permalink
feat: styles-v2 as component
Browse files Browse the repository at this point in the history
  • Loading branch information
nousantx committed May 18, 2024
1 parent db3b4b0 commit a9071be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { useState } from "react";
import reactLogo from "./assets/react.svg";
import viteLogo from "/vite.svg";
import { useStyles } from "./styles/lib/useStyles";
import { Styler } from "./styles";

function App() {
const [count, setCount] = useState(0);
useStyles();

return (
<>
<Styler>
<div>
<a href="https://vitejs.dev" target="_blank" className="gray-logo">
<img src={viteLogo} className="logo" alt="Vite logo " />
Expand All @@ -29,7 +28,7 @@ function App() {
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
</Styler>
);
}

Expand Down
12 changes: 12 additions & 0 deletions src/styles/lib/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ export function styles() {
// tenoxui init
tenoxui();
}

const ts = () => {
use(property)

makeStyles({
body: "m-0 d-flex place-items-center w-mn-320px h-mn-100vh",
"#root": "w-mx-1280px mh-auto"
// more styles
});

tenoxui()
};

0 comments on commit a9071be

Please sign in to comment.