Socket
Book a DemoInstallSign in
Socket

@another_works/react-landscape

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@another_works/react-landscape

``` $ npm run start ```

1.1.14
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

開発時コンパイル

$ npm run start

本番環境用コンパイル

$ npm run build

story book立ち上げ

$ npm run storybook

Deploy

  • versionを変更(例: https://github.com/anotherworks/react-landscape/pull/375)
  • タグを切る(例:https://github.com/anotherworks/react-landscape/releases)
  • 自動でactionsが動いて publish される

動作確認

storybookを使って動作確認を行う

Document

https://www.notion.so/another-works/ReactLandScape-49cd1931c8c542f3bc6861086b125dcc

In Use

$ npm i @another_works/react-landscape

app.tsx

import { ColorConsts, ThemeProvider } from '@another_works/react-landscape'
const customThemeStyle: ThemeConsts.CustomTheme = {
    color: {
        light: {
            service: {
                primary: '#020D4A',
                primaryHover: '#031162',
                secondary: '#003524',
            },
        },
        dark: {
            service: {
                primary: '#020D4A',
                primaryHover: '#031162',
                secondary: '#003524',
            },
        },
    },
}
function App({ Component, pageProps }: AppProps) {
    return (
        <>
            <ThemeProvider
                customTheme={customThemeStyle}
                mode={ColorConsts.ModeTypeValue.light}
            >
                <GlobalStyle />
                <Component {...pageProps} />
            </ThemeProvider>
        </>
    )
}

export default App
export function Component(props: {}) {
    const [color] = useTheme()
    return (
        <Container width={props.width} focus={isFocus}>
            <Icon iconType={'search'} size={16} color={color.basic.primary} />
        </Container>
    )
}

const Container = styled.div<{ width: string; focus: boolean }>`
    background-color: ${({ theme }) => theme.basic.quartanary};
`

use styled-components

styled-components.d.ts

import { ThemeConsts } from '@another_works/react-landscape';

export interface Theme extends ThemeConsts.ColorSchema {}

declare module 'styled-components' {
  interface DefaultTheme extends Theme {}
}

FAQs

Package last updated on 13 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.