Skip to content

Commit

Permalink
feat[coral]: Showcase css modules with example
Browse files Browse the repository at this point in the history
CSS Modules work by default.

Refers: #113
  • Loading branch information
SmuliS committed Oct 21, 2022
1 parent f45938a commit b3a39a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions coral/src/App.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.aClassName {
color: pink;
}
3 changes: 2 additions & 1 deletion coral/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Flexbox, TagLabel, Typography } from "@aivenio/design-system";
import classes from "./App.module.css";

function App() {
return (
<div>
<Typography htmlTag={"h1"} variant={"heading-2xl"}>
Hello Klaw 👋
</Typography>
<Flexbox alignItems={"center"}>
<Flexbox alignItems={"center"} className={classes.aClassName}>
<p>This uses the aiven design system! &nbsp; </p>
<TagLabel title="yey" />
</Flexbox>
Expand Down

0 comments on commit b3a39a1

Please sign in to comment.