Skip to content

Commit

Permalink
adding default palette to theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Agrawal committed Sep 3, 2021
1 parent 3622be4 commit 8bed950
Show file tree
Hide file tree
Showing 12 changed files with 13,528 additions and 13,526 deletions.
4 changes: 0 additions & 4 deletions .expo-shared/assets.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ npm-debug.*
*.orig.*
web-build/

# Coverage
coverage/

# macOS
.DS_Store

Expand Down
7 changes: 1 addition & 6 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"slug": "ninpo-ui",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
Expand All @@ -21,12 +19,9 @@
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
"web": {}
}
}
Binary file removed assets/adaptive-icon.png
Binary file not shown.
Binary file removed assets/favicon.png
Binary file not shown.
Binary file removed assets/icon.png
Binary file not shown.
Binary file removed assets/splash.png
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"main": "lib/commonjs/index.js",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"prestorybook": "rnstl",
"start": "expo start",
Expand All @@ -25,6 +25,7 @@
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
"react-native-aria": "^0.2.3",
"react-native-web": "~0.13.12"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Button.tsx
import React from "react";
import { BoxProps, TextProps } from "@shopify/restyle";
import { ActivityIndicator, TouchableHighlight } from "react-native";
Expand All @@ -23,7 +22,7 @@ const Button: React.FC<ButtonProps> = ({
<Box
py="m"
px="xl"
backgroundColor="primary"
backgroundColor="primary500"
borderRadius={8}
shadowOffset={{ height: 2, width: 0 }}
shadowRadius={5}
Expand Down
31 changes: 22 additions & 9 deletions src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
import { createTheme } from "@shopify/restyle";

const palette = {
purpleLight: "#8C6FF7",
purplePrimary: "#5A31F4",
purpleDark: "#3F22AB",

greenLight: "#56DCBA",
greenPrimary: "#0ECD9D",
greenDark: "#0A906E",

black: "#0B0B0B",
white: "#F0F2F3",
};

const theme = createTheme({
colors: {
primary: palette.purplePrimary,
primary50: "#e5e8ff",
primary100: "#e1e5ff",
primary200: "#c3caff",
primary300: "#a6b0ff",
primary400: "#8895ff",
primary500: "#6a7bff",
primary600: "#5562cc",
primary700: "#404a99",
primary800: "#2a3166",
primary900: "#151933",

secondary50: "#fff0f9",
secondary100: "#ffe1f4",
secondary200: "#ffc3e8",
secondary300: "#ffa6dd",
secondary400: "#ff88d1",
secondary500: "#ff6ac6",
secondary600: "#cc559e",
secondary700: "#994077",
secondary800: "#662a4f",
secondary900: "#331528",

...palette,
},
spacing: {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dist",
"lib",
"**/*.spec.ts",
"**/*.stories.[tj]sx",
"**/*.story.[tj]sx",
"**/*.test.[tj]sx",
"App.test.tsx",
"App.tsx"
Expand Down
Loading

0 comments on commit 8bed950

Please sign in to comment.