
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@one-platform/opc-styles
Advanced tools
This packages contains the all common styles which are important to get #### started with any component which includes global variables, colors, common mixin
This packages contains the all common styles which are important to get started with any component which includes global variables, colors, common mixin etc.
Import the opc-style.scss into your style file
@import "@one-platform/opc-styles";
adding color theme to component with local css custom property use opc-get-var function Note: see function/_custom-properties.scss for full function documentation.
opc-button.scss
op-button.soft {
background-color: #{opc-get-var(BackgroundColor, $opc-color--blue-50, soft)};
color: #{opc-get-var(TextColor, $opc-color--blue-400, soft)};
border-color: #{opc-get-var(BorderColor, $opc-color--blue-400, soft)};
}
op-button.flat {
background-color: #{opc-get-var(BackgroundColor, $opc-color--blue-50, flat)};
color: #{opc-get-var(TextColor, $opc-color--blue-400, flat)};
border-color: transparent;
}
opc-button.scss
op-button.soft {
background-color: var(--opc-button__soft--BackgroundColor, #E7F1FA);
color: var(--opc-button__soft--TextColor, #0066CC);
border-color: var(--opc-button__soft--BorderColor, #0066CC);
}
op-button.flat {
background-color: var(--opc-button__flat--BackgroundColor, #E7F1FA);
color: var(--opc-button__flat--TextColor, #0066CC);
border-color: transparent;
}
Use the mixin which are defined in the headings.scss file e.g.
.app-heading {
@include heading--three
}
this will convert to the css
.app-heading {
font-family: var(--opc-global--Heading--font-Family, "RedHatDisplay");
font-size: 1.5rem;
font-weight: 500;
}
use the global Gap and spacing variables to add space, these variables are using css pixel unit for distance which are defined in the variables/_1-definitions.scss file
👤 Sumeet Ingole @gisumit
👤 Deepesh Nair @hybridx
FAQs
This packages contains the all common styles which are important to get #### started with any component which includes global variables, colors, common mixin
We found that @one-platform/opc-styles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.