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

@fluentui-react-native/apple-theme

Package Overview
Dependencies
Maintainers
6
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui-react-native/apple-theme

A FluentUI React Native theme that pulls constants from FluentUI Apple

  • 0.28.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35
increased by9.38%
Maintainers
6
Weekly downloads
 
Created
Source

Apple-theme

Code and definitions for creating an Apple Theme for FluentUI React Native.

The theme first loads a base theme defined in JS, and then has a callback to layer a native theme defined in a native module on top of the base theme. This allows us to grab colors / constants / styling directly from FluentUI Apple, while still having a fallback as we wait for the native module to load.

Some heuristics followed in this theme:

  • For most tokens, we default to prefer the apple system colors, using the FluentUI Apple Palette where it makes sense. These mappings are subject to change as we increment on the design.
  • On apple platforms, there tends to not be a "hover" state for components such as Button, so those tokens are mapped to be identical to the rest state (normal state) tokens.
  • Similarly, there is not a "checked" state for most components, so those tokens are mapped to the rest state tokens.
  • The typography is designed to match the variants provided by the Apple HIG for regular and "emphasized". As such, the "Semibold" variants do not always map to the semibold weight, but whatever weight the Apple HIG specifies.

FAQs

Package last updated on 11 Apr 2024

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

  • 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