Skip to content

Commit

Permalink
feat(theming): adding initial light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoguzmana committed Aug 21, 2022
1 parent ab92ce6 commit a3ca4ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/under-construction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This library is still under construction. Below, a list of features that are cur
### General Improvements

- More color themes
- Smoother Animations (improve the feel of the animations)
- Smoother animations (improve the feel of the animations)
- Allow more configuration to all components in general. Sizes, colors, speed, radiuses, movements, e.t.c...
- Component to spread any component within the screen as for example the stars and hearts which works similar.

Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function App() {
onPress={() => {
setComponentToRender(
<Balloons
theme={lightMode ? FiestaThemes.dark : FiestaThemes.default}
theme={lightMode ? FiestaThemes.dark : FiestaThemes.light}
/>
);
}}
Expand Down
3 changes: 3 additions & 0 deletions src/constants/theming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const palette = {
orange: 'rgba(255, 165, 0, 1)',
pink: 'rgba(255, 192, 203, 1)',
black: 'rgba(0, 0, 0, 0.8)',
white: 'rgba(255, 255, 255, 0.8)',
golden: 'rgba(245, 229, 27, 0.5)',
gray: 'rgba(246, 243, 245, 0.5)',
};
Expand All @@ -22,8 +23,10 @@ const DefaultTheme = [
];

const DarkTheme = [palette.black];
const LightTheme = [palette.white];

export const FiestaThemes = {
default: DefaultTheme,
dark: DarkTheme,
light: LightTheme,
};

0 comments on commit a3ca4ca

Please sign in to comment.