adsgency-ads-ui
v0.1.0-alpha.1
Published
AdsGency Ads Design System React component library.
Readme
adsgency-ads-ui
Ads Design System package for AdsGency product surfaces.
Scope
The first published version includes:
AdsButtonAdsButtonGroupAdsInputAdsInputGroupAdsInputOTPAdsAccordion- Product Dark tokens and CSS variables
- Tailwind preset
- Lightweight package-level i18n provider
All component implementations are expected to be ADS-specific wrappers around shadcn/ui-style primitives and the current design language, rather than hand-written base components.
The package does not expose product business modules, Next-specific runtime code, AntD wrappers, or non-v1 Ads components.
Install
npm install adsgency-ads-uiUsage
import {
AdsAccordion,
AdsButton,
AdsButtonGroup,
AdsI18nProvider,
AdsInput,
AdsInputGroup,
AdsInputOTP,
} from "adsgency-ads-ui";
import "adsgency-ads-ui/styles.css";Tailwind:
const adsUiPreset = require("adsgency-ads-ui/tailwind-preset");
module.exports = {
presets: [adsUiPreset],
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/adsgency-ads-ui/dist/**/*.{js,cjs,mjs}",
],
};Public API
Allowed imports:
adsgency-ads-uiadsgency-ads-ui/styles.cssadsgency-ads-ui/tailwind-presetadsgency-ads-ui/tokens
Disallowed imports:
adsgency-ads-ui/src/...adsgency-ads-ui/dist/...adsgency-ads-ui/primitives/...
Local Demo
Run the local playground:
pnpm demoThe demo is served from http://127.0.0.1:4173 and uses the local source tree for fast wrapper-level iteration.
