Gathering detailed insights and metrics for arktheme
Gathering detailed insights and metrics for arktheme
npm install arktheme
Typescript
Module System
Node Version
NPM Version
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
7,844
Last Day
1
Last Week
14
Last Month
80
Last Year
947
Latest Version
0.1.65
Package Id
arktheme@0.1.65
Unpacked Size
108.09 kB
Size
19.88 kB
File Count
61
NPM Version
9.3.1
Node Version
18.14.1
Published on
Apr 22, 2023
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
100%
14
Compared to previous week
Last Month
-44.4%
80
Compared to previous month
Last Year
-86.3%
947
Compared to previous year
npm version patch
or other release typenpm run build
(Use git-bash on windows)npm publish
export * from "./theme/components";
export * from "./theme/styles/Flex";
export * from '@ant-design/icons';
export {
GlobalTheme,
ArkTheme,
Utils,
GlobalStyles,
Logo,
antdTheme,
Actions,
System,
FakeNav
};
This script automates the release process for a Git repository with an npm project. It performs the following steps:
./release.sh "<commit-message>"
<GlobalTheme darkMode={boolean}>
{Site Contents}
</GlobalTheme>
/* Main Colours */
--main-bg-color
--main-text-color
--main-border-color
--main-text-inverse-color
--logo-color
--logo-text-color
/* Primary/Secondary Colours */
--primary-color
--primary-hover-color
--secondary-color
--secondary-hover-color
/* Main Navigation */
--main-menu-icon-color
/* Element Colours */
--element-bg-color
--main-nav-bg-color
/* Sizes */
--nav-main-height
/* Hero */
--hero-overlay-button-spacing
/* Buttons */
--button-default-padding
--button-default-min-width
/* Modals */
--modal-company-profile
// Color Palette
palette : {
black : '#000',
white : '#fff',
cyan100 : '#CCF6FE',
blue50 : '#E0E7F2',
blue500 : '#1242F9',
blue900 : '#040D21',
grey50 : '#F8F8F8',
grey100 : '#F2F2F2',
grey200 : '#CCCCCC',
grey300 : '#B2B2B2',
grey400 : '#E2E9F2',
grey500 : '#808080',
grey600 : '#666666',
grey700 : '#4D4D4D',
grey900 : '#1A1A1A',
green : '#37B34A',
green2 : '#17CF97',
coolGrey50 : '#F3F6F9',
coolGrey100 : '#EFF3F7',
coolGrey200 : '#EBF0F6',
coolGrey300 : '#E7EDF4',
coolGrey400 : '#E2E9F2',
coolGrey600 : '#C9D0D9',
coolGrey800 : '#595C60',
coolGrey900 : '#434548',
magenta500 : '#DF00C7',
magenta100 : '#FFB8F7',
deepPurple500 : '#673AB7',
deepPurple600 : '#5E35B1',
purple500 : '#8960F9',
purple100 : '#CFBFFD',
success100 : '#DEF9E1',
success500 : '#B0F2B7',
success700 : '#67A870',
warning50 : '#FFF4E6',
warning800 : '#C05F33',
warning900 : '#AB370C',
error900 : '#97202C'
},
Using withTheme
from styled-components
import styled, { withTheme } from 'styled-components' const TestComponent = ({...props}) => { return ( <Container> TestComponent <Button onClick={() => props.theme.actions.themeFunction(true)}>Dark Mode</Button> <Button onClick={() => props.theme.actions.themeFunction(false)}>Light Mode</Button> </Container> ) export default withTheme(TestComponent)
Currently under construction:\
Uses a combination of:
styled-components
antd
ArkTheme
- A custom theme system by ArkIn GlobalTheme.js the <ThemeProvider>
(styled-components
) will provide the theme for the entire site:
<ThemeProvider theme={{
arkTheme : ArkTheme,
darkMode : darkmode ? true : false,
antd : darkmode ? antdTheme.dark.token: antdTheme.light.token,
responsiveSizes : getBreakpoint()
}}>
To use in a styled component you can use props
to bring in the theme.
This theme will be responsive
& darkMode
controlled from the <ThemeProvider>
ArkTheme
custom theme variables and functionsArkTheme
boolean
of darkMode
statusAnt Design
tokenconst StyledInput = styled(Input)`
.ant-input-prefix {
margin-inline-end: 8px;
}
color: ${(props) => {
return props.theme.antd.colorPrimary;
}};
`
Utils.{utilName}
Utils.prevent()
Uses:
onClick={Utils.prevent(()=>{})}
Prevents any onClick from Parent Element
onClick={Utils.prevent(()=>{otherFunction()})}
Replaces the onClick with a new function
Utils.excert($number-of-characters)
Uses:
Utils.excert(str, 100)
...
if over 100 charactersNo vulnerabilities found.
No security vulnerabilities found.