New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@potok/theme

Package Overview
Dependencies
Maintainers
6
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@potok/theme - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

6

components/PotokThemeProvider.jsx

@@ -19,4 +19,6 @@ // @flow

*/
const PotokThemeProvider = ({ appearance, device, children }: Props) => (
<ThemeProvider theme={{ appearance, device }}>{children}</ThemeProvider>
const PotokThemeProvider = ({ appearance, device, color, children }: Props) => (
<ThemeProvider theme={{ appearance, device, color }}>
{children}
</ThemeProvider>
);

@@ -23,0 +25,0 @@

@@ -5,3 +5,3 @@ import { css } from 'styled-components';

export { default as colors } from './lib/colors';
export { themedColors as colors } from './lib/colors';
export { default as PotokThemeProvider } from './components/PotokThemeProvider';

@@ -11,2 +11,3 @@ export {

devices as themeDevices,
colors as themeColors,
} from './lib/theme';

@@ -13,0 +14,0 @@ export { default as themed } from './lib/themed';

@@ -1,4 +0,11 @@

export default {
import _ from 'lodash';
import { colors as colorThemes } from './theme';
const themedPalette = {
// Primary colors
B500: '#26bdfc', // base blue
B500: {
[colorThemes.default]: '#26bdfc', // base blue
[colorThemes.recruitmentAgency]: '#5649f2',
},
G500: '#0ce0ad', // base green

@@ -9,6 +16,18 @@ R500: '#ff5a6e', // base red

// Secondary colors
B600: '#1fa6f2',
B400: '#26cbff',
B100: '#b3e9ff',
B50: '#f1fbff',
B600: {
[colorThemes.default]: '#1fa6f2',
[colorThemes.recruitmentAgency]: '#4758f3',
},
B400: {
[colorThemes.default]: '#26cbff',
[colorThemes.recruitmentAgency]: '#6284ff',
},
B100: {
[colorThemes.default]: '#b3e9ff',
[colorThemes.recruitmentAgency]: '#a1c4f9',
},
B50: {
[colorThemes.default]: '#f1fbff',
[colorThemes.recruitmentAgency]: '#f2f8ff',
},
G400: '#01fdd5',

@@ -30,1 +49,9 @@ G300: '#1cedbb',

};
export const themedColors = Object.keys(themedPalette).reduce((acc, key) => {
acc[key] = (props: ThemeProps) => {
const theme = _.get(props, 'theme.color') || 'default';
return _.get(themedPalette, [key, theme]) || _.get(themedPalette, key);
};
return acc;
}, {});

@@ -11,4 +11,9 @@ export const appearances = {

export const colors = {
default: 'default',
recruitmentAgency: 'recruitmentAgency',
};
const theme = {};
export default theme;
// @flow
import { appearances, devices } from './theme';
import { appearances, devices, colors } from './theme';
export type ThemeAppearance = $Values<appearances>;
export type ThemeDevice = $Values<devices>;
export type Theme = { appearance: ThemeAppearance, device: ThemeDevice };
export type ThemeColor = $Values<colors>;
export type Theme = {
appearance: ThemeAppearance,
device: ThemeDevice,
color: ThemeColor,
};
export type ThemeProps = { theme: Theme };
{
"name": "@potok/theme",
"version": "0.6.3",
"version": "0.6.4",
"description": "Potok.io UI Kit Theme package",

@@ -5,0 +5,0 @@ "main": "./index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc