Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@srvycool/ds

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@srvycool/ds - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

dist/components/Typography/Typography.d.ts

1

dist/index.d.ts
export * from './components/Button/Button';
export * from './components/ThemeProvider/ThemeProvider';
export * from './components/Typography/Typography';

@@ -15,1 +15,2 @@ "use strict";

__exportStar(require("./components/ThemeProvider/ThemeProvider"), exports);
__exportStar(require("./components/Typography/Typography"), exports);

@@ -1,2 +0,94 @@

import { DefaultTheme } from 'styled-components';
export declare const theme: DefaultTheme;
export interface Theme {
colors: {
primary900: string;
primary800: string;
primary700: string;
primary600: string;
primary500: string;
primary400: string;
primary300: string;
primary200: string;
primary100: string;
grey900: string;
grey800: string;
grey700: string;
grey600: string;
grey500: string;
grey400: string;
grey300: string;
grey200: string;
grey100: string;
grey000: string;
};
breakpoints: string[];
mediaQueries: {
sm: string;
md: string;
lg: string;
xl: string;
};
space: {
zero: string;
xxs: string;
xs: string;
s: string;
m: string;
l: string;
xl: string;
xxl: string;
xxxl: string;
};
shadows: {
primary: string;
};
radii: {
primary: string;
};
borders: {
primary: string;
};
fonts: {
primary: string;
secondary: string;
};
fontSizes: string[];
typography: {
heading1: {
fontSize: string;
lineHeight: string;
fontFamily: string;
};
heading2: {
fontSize: string;
lineHeight: string;
fontFamily: string;
};
heading3: {
fontSize: string;
lineHeight: string;
fontFamily: string;
};
subtitle: {
fontSize: string;
lineHeight: string;
fontFamily: string;
};
body1: {
fontSize: string;
lineHeight: string;
fontFamily: string;
};
body2: {
fontSize: string;
lineHeight: string;
fontFamily: string;
};
caption: {
fontSize: string;
lineHeight: string;
fontFamily: string;
textTransform: string;
};
};
}
export declare const theme: Theme;

@@ -53,6 +53,44 @@ "use strict";

const fonts = {
primary: 'HammersmithOne',
primary: 'Hammersmith One',
secondary: 'Montserrat',
};
const fontSizes = ['12px', '16px', '18px', '20px', '22px', '24px'];
const typography = {
heading1: {
fontSize: '24px',
lineHeight: '1.2',
fontFamily: fonts.primary,
},
heading2: {
fontSize: '22px',
lineHeight: '1.2',
fontFamily: fonts.primary,
},
heading3: {
fontSize: '20px',
lineHeight: '1.2',
fontFamily: fonts.primary,
},
subtitle: {
fontSize: '18px',
lineHeight: '1.2',
fontFamily: fonts.secondary,
},
body1: {
fontSize: '16px',
lineHeight: '1.2',
fontFamily: fonts.secondary,
},
body2: {
fontSize: '12px',
lineHeight: '1.2',
fontFamily: fonts.secondary,
},
caption: {
fontSize: '12px',
lineHeight: '1.2',
fontFamily: fonts.secondary,
textTransform: 'uppercase',
},
};
exports.theme = {

@@ -68,2 +106,3 @@ colors,

fontSizes,
typography,
};

2

package.json
{
"name": "@srvycool/ds",
"version": "1.4.1",
"version": "1.5.0",
"description": "design system for srvy.cool",

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

Sorry, the diff of this file is not supported yet

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