Skip to content

Commit

Permalink
Beter catch phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jul 14, 2023
1 parent 55165fb commit de8c4fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ThemeProvider, useStyles } from "./theme";
import { GlArticle } from "gitlanding/GlArticle";
import { createRoot } from "react-dom/client";
import { StrictMode } from "react";
import { Text } from "./theme";
import logoPngUrl from "./assets/logo.png";
import demoGifUrl from "./assets/demo.gif";
import nestedSelectorsMp4Url from "./assets/nestedSelectors_small.mp4";
Expand Down Expand Up @@ -64,8 +65,8 @@ function App() {
"illustrationWrapper": css({ "maxWidth": 460 }),
"illustration": css({ "borderRadius": 10 })
}}
title="The most reacty CSS in TS solution"
subTitle="Just like JSS but type safe and powered by emotion 🚀"
title="A CSS-in-TypeScript Solution"
subTitle="Effortlessly express sophisticated, dynamic styles in your React components ✨"
illustration={{
"type": "image",
"src": demoGifUrl,
Expand Down
10 changes: 8 additions & 2 deletions src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createThemeProvider, defaultGetTypographyDesc, defaultPalette } from "onyxia-ui";
import { createText } from "onyxia-ui/Text";

export const palette: typeof defaultPalette = {
...defaultPalette,
Expand Down Expand Up @@ -30,5 +31,10 @@ export const { ThemeProvider, useTheme, useStyles } = createThemeProvider({
"getTypographyDesc": params => ({
...defaultGetTypographyDesc(params),
"fontFamily": '"Work Sans", sans-serif'
})
});
}),
"defaultIsDarkModeEnabled": true
});

export const { Text } = createText({
useTheme
});

0 comments on commit de8c4fa

Please sign in to comment.