![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@haaretz/hdc-theme
Advanced tools
Style theme for haaretz branded apps
Haaretz applications use Fela for styling components, and this package is
designed to integrate with that workflow, specifically through a themeProvider
. While it is
possible that htz-theme
will work out of the box with other CSS-in-JS solutions, please take into
account that your millage may vary.
Table of Contents
yarn add @haaretz/htz-theme
or alternatively,
npm install --save @haaretz/htz-theme
The default export of @haaretz/htz-theme
is a theme object meant to be used for styling
UIs in line with Haaretz brand guidelines. It contains several methods and properties:
import htzTheme from '@haaretz/htz-theme'
bps
(Object
) - An immutable MqOptions
object with breakpoint definitions
bps.width
(Object
) - An immutable WidthBpsConfig
object with values of boundary points between named width-breakpointsMiscBpsConfig
object with values named miscellaneous media-features media queriesfontStacks
(Object
) - An object containing font-family stacks for different use casesdirection
(rtl
) - The application's flow directiontypeConf
(Object
) - An immutable TypeConf
object per-breakpoint typographic and vertical-rhythm valuescolor
- A colorGetter
function for retrieving color values from the predefined color palette.mq
- A media-query function,
which intelligently returns a media-query scoped css-in-js object based on breakpoints defined
in theme.bps
pxToRem
- A function that
converts px values to rem
at given breakpoints while accounting to changes in vertical rhythmtype
- A Typesetter
function that returns a CSS-in-JS object of typographic styles conforming to a global predefined
typographic scale and vertical rhythmIn addition to the default theme object, htz-theme
also exports a secondary cssReset
module,
which helps reset default user-agent styles and provide a clear canvas, so to speak, as a basis to
build upon.
import {cssReset} from '@haaretz/htz-theme';
cssReset
is a css-like string that can be injected directly inside a <style>
, either using
the Fela renderer's renderStatic()
method:
renderer.renderStatic(cssReset);
FAQs
Style theme for haaretz.com app
The npm package @haaretz/hdc-theme receives a total of 7 weekly downloads. As such, @haaretz/hdc-theme popularity was classified as not popular.
We found that @haaretz/hdc-theme demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.