Skip to content

Commit

Permalink
add postcss to ues css modules and apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Lavoie committed Jan 10, 2025
1 parent 698ecd2 commit 78af561
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
'postcss-nested': {},
},
}
7 changes: 7 additions & 0 deletions frontend/apps/variant/src/App.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.appLayout {
@apply flex flex-1;

aside {
@apply w-1/4 p-4;
}
}
6 changes: 4 additions & 2 deletions frontend/apps/variant/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import "./App.css";
import styles from "./App.module.css";

import {
Accordion,
AccordionContent,
Expand All @@ -21,8 +23,8 @@ export interface AppProps {
function App({ api }: AppProps) {
console.log(api);
return (
<div className="flex flex-1">
<aside className="w-1/4 p-4">
<div className={styles.appLayout}>
<aside >
<ul>
<li>
<Accordion type="single" collapsible>
Expand Down
4 changes: 4 additions & 0 deletions frontend/portals/radiant/app/types/css-modules.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.module.css' {
const classes: { [key: string]: string };
export default classes;
}
8 changes: 8 additions & 0 deletions frontend/portals/radiant/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
'postcss-nested': {},
},
}

0 comments on commit 78af561

Please sign in to comment.