| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | import * as stylex from '@stylexjs/stylex'; |
| 9 | import {spacing} from './tokens.stylex'; |
| 10 | |
| 11 | export const layout = stylex.create({ |
| 12 | flexRow: { |
| 13 | display: 'flex', |
| 14 | flexDirection: 'row', |
| 15 | gap: spacing.pad, |
| 16 | alignItems: 'center', |
| 17 | }, |
| 18 | flexCol: { |
| 19 | display: 'flex', |
| 20 | flexDirection: 'column', |
| 21 | gap: spacing.pad, |
| 22 | alignItems: 'center', |
| 23 | }, |
| 24 | fullWidth: { |
| 25 | width: '100%', |
| 26 | }, |
| 27 | padding: { |
| 28 | padding: spacing.pad, |
| 29 | }, |
| 30 | paddingInline: { |
| 31 | paddingInline: spacing.pad, |
| 32 | }, |
| 33 | paddingBlock: { |
| 34 | paddingBlock: spacing.pad, |
| 35 | }, |
| 36 | margin: { |
| 37 | margin: spacing.pad, |
| 38 | }, |
| 39 | marginInline: { |
| 40 | marginInline: spacing.pad, |
| 41 | }, |
| 42 | marginBlock: { |
| 43 | marginBlock: spacing.pad, |
| 44 | }, |
| 45 | }); |
| 46 | |