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

@tlon/indigo-tokens

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tlon/indigo-tokens - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

4

dist/colors.d.ts

@@ -10,3 +10,7 @@ declare const colors: {

blue: string;
highlight: string;
caution: string;
error: string;
success: string;
};
export default colors;
import light from './themes/light';
import { ThemedStyledInterface } from 'styled-components';
export declare type Theme = typeof light;
export declare const styled: ThemedStyledInterface<{
fonts: {
sans: string;
mono: string;
};
fontSizes: number[];
fontWeights: {
thin: number;
regular: number;
bold: number;
};
lineHeights: {
min: number;
short: number;
regular: number;
tall: number;
};
borders: string[];
space: number[];
radii: number[];
sizes: number[];
zIndices: number[];
breakpoints: string[];
colors: {
none: string;
white: string;
black: string;
gray: string;
lightGray: string;
red: string;
yellow: string;
green: string;
blue: string;
highlight: string;
caution: string;
error: string;
success: string;
};
}>;
export { light };

@@ -1,1 +0,8 @@

(()=>{let g=Object.defineProperty,m=(b,a)=>()=>(a||(a={exports:{}},b(a.exports,a)),a.exports),n=b=>g(b,"__esModule",{value:!0}),o=(b,a)=>{n(b);for(let h in a)g(b,h,{get:a[h],enumerable:!0})};var r=m(a=>{o(a,{light:()=>f})});const c={white:"rgba(255,255,255,1)",black:"rgba(0,0,0,1)",gray:"rgba(169,169,169,1",lightGray:"rgba(242,242,242,1)",red:"rgba(255,65,54,1)",yellow:"rgba(255,199,0,1)",green:"rgba(0,159,101,1)",blue:"rgba(0,142,255,1)"},i={highlight:c.blue,caution:c.yellow,error:c.red,success:c.green},j={...i,...c},d=j;const k={fonts:{sans:`"Inter", "Inter UI", -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', Arial, sans-serif`,mono:'"Source Code Pro", "Roboto mono", "Courier New", monospace'},fontSizes:[12,16,24,32,48,64],fontWeights:{thin:300,regular:400,bold:600},lineHeights:{min:1.2,short:1.333333,regular:1.5,tall:1.666666},borders:["none","1px solid"],space:[0,4,8,16,24,32,48,64,96],radii:[0,2,4,8,16],sizes:[0,4,8,16,24,32,48,64,96],zIndices:[0,1,2,3,4,5,6,7,8,9,10],breakpoints:["768px","1024px","1440px","2200px"]},e=k;const l={colors:{...d,none:"rgba(0,0,0,0)"},...e},f=l;r();})();
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./indigo-tokens.cjs.production.min.js')
} else {
module.exports = require('./indigo-tokens.cjs.development.js')
}

@@ -5,2 +5,6 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var baseStyled = _interopDefault(require('styled-components'));
function _extends() {

@@ -34,6 +38,12 @@ _extends = Object.assign || function (target) {

};
var accent = {
highlight: base.blue,
caution: base.yellow,
error: base.red,
success: base.green
};
var colors =
/*#__PURE__*/
_extends({}, base);
_extends({}, accent, {}, base);

@@ -46,3 +56,7 @@ var core = {

// font-size
fontSizes: [10, 11, 12, 14, 16, 20, 24, 32, 48, 64, 72],
fontSizes: [// 10, // 0
// 11, // 1
12, // 14, // 3
16, // 20, // 5
24, 32, 48, 64],
// font-weight

@@ -64,7 +78,14 @@ fontWeights: {

// margin, margin-top, margin-right, margin-bottom, margin-left, padding, padding-top, padding-right, padding-bottom, padding-left, grid-gap, grid-column-gap, grid-row-gap
space: [0, 4, 8, 12, 16, 20, 24, 32, 48, 64, 96, 160, 288, 448, 736],
space: [0, 4, 8, // 12, // 3
16, // 20, // 5
24, 32, 48, 64, 96],
// border-radius
radii: [0, 2, 4, 6, 8, 10, 12, 16, 24, 32],
radii: [0, 2, 4, // 6, // 3
8, // 10, // 5
// 12, // 6
16],
// width, height, min-width, max-width, min-height, max-height
sizes: [0, 4, 8, 12, 16, 20, 24, 32, 48, 64, 96, 160, 288, 448, 736],
sizes: [0, 4, 8, // 12, // 3
16, // 20, // 5
24, 32, 48, 64, 96],
// z-index

@@ -85,3 +106,7 @@ zIndices: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],

// import dark from './themes/dark';
var styled = baseStyled;
exports.light = theme;
exports.styled = styled;
//# sourceMappingURL=indigo-tokens.cjs.development.js.map

2

dist/indigo-tokens.cjs.production.min.js

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

"use strict";function e(){return(e=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e}).apply(this,arguments)}Object.defineProperty(exports,"__esModule",{value:!0});var r={fonts:{sans:"\"Inter\", \"Inter UI\", -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', Arial, sans-serif",mono:'"Source Code Pro", "Roboto mono", "Courier New", monospace'},fontSizes:[10,11,12,14,16,20,24,32,48,64,72],fontWeights:{thin:300,regular:400,bold:600},lineHeights:{min:1.2,short:1.333333,regular:1.5,tall:1.666666},borders:["none","1px solid"],space:[0,4,8,12,16,20,24,32,48,64,96,160,288,448,736],radii:[0,2,4,6,8,10,12,16,24,32],sizes:[0,4,8,12,16,20,24,32,48,64,96,160,288,448,736],zIndices:[0,1,2,3,4,5,6,7,8,9,10],breakpoints:["768px","1024px","1440px","2200px"]};exports.light=e({colors:e({},e({},{white:"rgba(255,255,255,1)",black:"rgba(0,0,0,1)",gray:"rgba(169,169,169,1",lightGray:"rgba(242,242,242,1)",red:"rgba(255,65,54,1)",yellow:"rgba(255,199,0,1)",green:"rgba(0,159,101,1)",blue:"rgba(0,142,255,1)"}),{none:"rgba(0,0,0,0)"})},r);
"use strict";var e;function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(this,arguments)}Object.defineProperty(exports,"__esModule",{value:!0});var o={white:"rgba(255,255,255,1)",black:"rgba(0,0,0,1)",gray:"rgba(169,169,169,1",lightGray:"rgba(242,242,242,1)",red:"rgba(255,65,54,1)",yellow:"rgba(255,199,0,1)",green:"rgba(0,159,101,1)",blue:"rgba(0,142,255,1)"},t={fonts:{sans:"\"Inter\", \"Inter UI\", -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', Arial, sans-serif",mono:'"Source Code Pro", "Roboto mono", "Courier New", monospace'},fontSizes:[12,16,24,32,48,64],fontWeights:{thin:300,regular:400,bold:600},lineHeights:{min:1.2,short:1.333333,regular:1.5,tall:1.666666},borders:["none","1px solid"],space:[0,4,8,16,24,32,48,64,96],radii:[0,2,4,8,16],sizes:[0,4,8,16,24,32,48,64,96],zIndices:[0,1,2,3,4,5,6,7,8,9,10],breakpoints:["768px","1024px","1440px","2200px"]},a=(e=require("styled-components"))&&"object"==typeof e&&"default"in e?e.default:e;exports.light=r({colors:r({},r({},{highlight:o.blue,caution:o.yellow,error:o.red,success:o.green},{},o),{none:"rgba(0,0,0,0)"})},t),exports.styled=a;
//# sourceMappingURL=indigo-tokens.cjs.production.min.js.map

@@ -0,1 +1,3 @@

import baseStyled from 'styled-components';
function _extends() {

@@ -29,6 +31,12 @@ _extends = Object.assign || function (target) {

};
var accent = {
highlight: base.blue,
caution: base.yellow,
error: base.red,
success: base.green
};
var colors =
/*#__PURE__*/
_extends({}, base);
_extends({}, accent, {}, base);

@@ -41,3 +49,7 @@ var core = {

// font-size
fontSizes: [10, 11, 12, 14, 16, 20, 24, 32, 48, 64, 72],
fontSizes: [// 10, // 0
// 11, // 1
12, // 14, // 3
16, // 20, // 5
24, 32, 48, 64],
// font-weight

@@ -59,7 +71,14 @@ fontWeights: {

// margin, margin-top, margin-right, margin-bottom, margin-left, padding, padding-top, padding-right, padding-bottom, padding-left, grid-gap, grid-column-gap, grid-row-gap
space: [0, 4, 8, 12, 16, 20, 24, 32, 48, 64, 96, 160, 288, 448, 736],
space: [0, 4, 8, // 12, // 3
16, // 20, // 5
24, 32, 48, 64, 96],
// border-radius
radii: [0, 2, 4, 6, 8, 10, 12, 16, 24, 32],
radii: [0, 2, 4, // 6, // 3
8, // 10, // 5
// 12, // 6
16],
// width, height, min-width, max-width, min-height, max-height
sizes: [0, 4, 8, 12, 16, 20, 24, 32, 48, 64, 96, 160, 288, 448, 736],
sizes: [0, 4, 8, // 12, // 3
16, // 20, // 5
24, 32, 48, 64, 96],
// z-index

@@ -80,3 +99,6 @@ zIndices: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],

export { theme as light };
// import dark from './themes/dark';
var styled = baseStyled;
export { theme as light, styled };
//# sourceMappingURL=indigo-tokens.esm.js.map
{
"name": "@tlon/indigo-tokens",
"version": "1.3.4",
"version": "1.3.5",
"description": "Tlon's design language",

@@ -19,7 +19,7 @@ "author": "tlon",

"start": "tsdx watch",
"build": "esbuild src/index.ts --bundle --minify --outdir='dist'",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"lint:fix": "tsdx lint src --fix",
"prepare": "esbuild src/index.ts --bundle --minify --outdir='dist'"
"prepare": "tsdx build"
},

@@ -26,0 +26,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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