1
0
Форкнуть 0
A Zeplin extension for generating Xaml
Перейти к файлу
Arnstein Johansen c56c8b6ce9
Changed Zeplin name to Xamarin.Forms
2018-04-13 11:02:37 +02:00
src It works 2018-04-11 16:55:41 +02:00
.eslintrc.json Enable eslint (airbnb-base config) 2018-02-28 11:12:13 -05:00
.gitignore Initial commit 2018-02-26 11:05:04 -05:00
LICENSE Initial commit 2018-02-26 11:05:04 -05:00
README.md Update readme and doc 2018-04-12 10:16:07 +02:00
package-lock.json Update package-lock.json 2018-03-19 09:54:21 -04:00
package.json Changed Zeplin name to Xamarin.Forms 2018-04-13 11:02:37 +02:00
webpack.zem.js Use zem 2018-03-09 16:26:03 +03:00

README.md

Zeplin Xamarin.Forms Extension

Zeplin extension for Xamarin.Forms.

Available on GitHub.

Samples

Sample colors output:

<Color x:Key="PrimaryColor">#FFFF0000</Color>
<Color x:Key="SecondaryColor">#FF00FF00</Color>
<Color x:Key="TertiaryColor">#FF0000FF</Color>

Sample text style output:

<Style x:Key="SampleTextStyle"
       TargetType="Label">
    <Setter Property="FontFamily"
            Value="SFProText" />
    <Setter Property="FontSize"
            Value="20" />
    <Setter Property="FontAttributes"
            Value="Bold" />
</Style>

Sample text layer output:

<Label Text="Hello"
           Style="{StaticResource SampleTextStyle}"
           HorizontalTextAlignment="Center">

Options

Sort styleguide resources

Toggle whether styleguide resources should be sorted alphabetically or not.

Consolidate duplicates

Define the suffix that indicates that a resource is a duplicate and should be consolidated.

For example, using the value _duplicate would replace all instances of PrimaryColor_duplicate with PrimaryColor in generated snippets.

This is useful when dealing with values that are almost identical (i.e., #FFFFFF vs #FFFFFE) or properties that don't warrant a distinct style (i.e., TextAlignment).

Ignore FontFamily

Toggle whether FontFamily should be generated or not.

Development

I have forked this from the XAML extension for UWP made by Nventive. You can find the repo here.

This extension is developed using zem, Zeplin Extension Manager. zem is a command line tool that lets you quickly create and test extensions.

To learn more about zem, see documentation.

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.